1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-10 20:07:56 +01:00

AllowCredentials for CORS policy

This commit is contained in:
Kyle Spearrin 2017-12-04 15:11:33 -05:00
parent 8ac284f1ec
commit 51534f159c

View File

@ -125,8 +125,9 @@ namespace Bit.Api
// Cors
services.AddCors(config =>
{
config.AddPolicy("All", policy =>
policy.AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin().SetPreflightMaxAge(TimeSpan.FromDays(1)));
config.AddPolicy("All", policy => policy
.AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin().AllowCredentials()
.SetPreflightMaxAge(TimeSpan.FromDays(1)));
});
// MVC