mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
all host origins allowed
This commit is contained in:
@ -162,7 +162,8 @@ namespace Bit.Api
|
||||
app.UseStaticFiles();
|
||||
|
||||
// Add Cors
|
||||
app.UseCors(policy => policy.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());
|
||||
app.UseCors(policy => policy.SetIsOriginAllowed(h => true)
|
||||
.AllowAnyMethod().AllowAnyHeader().AllowCredentials());
|
||||
|
||||
// Add authentication to the request pipeline.
|
||||
app.UseAuthentication();
|
||||
|
Reference in New Issue
Block a user