Allow frontend url

This commit is contained in:
Kasper Juul Hermansen 2021-11-14 19:40:09 +01:00
parent b9eb903f93
commit 028111b617
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -26,7 +26,7 @@ namespace Todo.Api
services.AddCors(options => services.AddCors(options =>
{ {
options.AddDefaultPolicy(builder => options.AddDefaultPolicy(builder =>
builder.WithOrigins("http://localhost:3000") builder.WithOrigins("http://localhost:3000", "https://todo.front.kjuulh.io")
.AllowCredentials() .AllowCredentials()
.AllowAnyHeader() .AllowAnyHeader()
.AllowAnyMethod()); .AllowAnyMethod());
@ -65,4 +65,4 @@ namespace Todo.Api
}); });
} }
} }
} }