From e9f254a8609dd83b88294fbd3a7bde445487b7ad Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 4 Dec 2017 21:44:57 -0500 Subject: [PATCH] correct cors policy for events --- src/Events/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Events/Startup.cs b/src/Events/Startup.cs index 6d905f0be..aec54cc68 100644 --- a/src/Events/Startup.cs +++ b/src/Events/Startup.cs @@ -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();