mirror of
https://github.com/bitwarden/server
synced 2025-12-21 02:33:30 +00:00
AllowCredentials for CORS policy
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user