mirror of
https://github.com/bitwarden/server
synced 2025-12-22 11:13:27 +00:00
correct cors policy for events
This commit is contained in:
@@ -105,7 +105,7 @@ namespace Bit.Events
|
|||||||
app.UseDefaultMiddleware(env);
|
app.UseDefaultMiddleware(env);
|
||||||
|
|
||||||
// Add Cors
|
// Add Cors
|
||||||
app.UseCors("All");
|
app.UseCors(policy => policy.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader().AllowCredentials());
|
||||||
|
|
||||||
// Add authentication to the request pipeline.
|
// Add authentication to the request pipeline.
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
|||||||
Reference in New Issue
Block a user