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