1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00

correct cors policy for events

This commit is contained in:
Kyle Spearrin 2017-12-04 21:44:57 -05:00
parent eea119a4b6
commit e9f254a860

View File

@ -105,7 +105,7 @@ namespace Bit.Events
app.UseDefaultMiddleware(env);
// Add Cors
app.UseCors("All");
app.UseCors(policy => policy.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader().AllowCredentials());
// Add authentication to the request pipeline.
app.UseAuthentication();