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:
parent
8ac284f1ec
commit
51534f159c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user