mirror of
https://github.com/bitwarden/server.git
synced 2025-05-22 12:04:27 -05:00
AllowCredentials
for CORS policy
This commit is contained in:
parent
8ac284f1ec
commit
51534f159c
@ -125,8 +125,9 @@ namespace Bit.Api
|
|||||||
// Cors
|
// Cors
|
||||||
services.AddCors(config =>
|
services.AddCors(config =>
|
||||||
{
|
{
|
||||||
config.AddPolicy("All", policy =>
|
config.AddPolicy("All", policy => policy
|
||||||
policy.AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin().SetPreflightMaxAge(TimeSpan.FromDays(1)));
|
.AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin().AllowCredentials()
|
||||||
|
.SetPreflightMaxAge(TimeSpan.FromDays(1)));
|
||||||
});
|
});
|
||||||
|
|
||||||
// MVC
|
// MVC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user