mirror of
https://github.com/ditkrg/AuthorizationServerDemos.git
synced 2026-01-22 22:47:02 +00:00
Enables Cors
This commit is contained in:
parent
594ac4c8cf
commit
43596d741e
@ -24,13 +24,13 @@ namespace OidcSamples.AuthorizationServer
|
||||
services.AddControllersWithViews();
|
||||
|
||||
services.AddCors(options =>
|
||||
{
|
||||
options.AddPolicy(name: "Default",
|
||||
builder =>
|
||||
{
|
||||
builder.AllowAnyHeader().AllowAnyOrigin().AllowAnyMethod();
|
||||
});
|
||||
});
|
||||
{
|
||||
options.AddPolicy(name: "Default",
|
||||
builder =>
|
||||
{
|
||||
builder.AllowAnyHeader().AllowAnyOrigin().AllowAnyMethod();
|
||||
});
|
||||
});
|
||||
|
||||
var builder = services.AddIdentityServer(options =>
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user