Skip to content

Commit

Permalink
reverted cors security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samsmithnz committed Aug 2, 2021
1 parent 935c3f4 commit e0519cc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions FeatureFlags/FeatureFlags.Service/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)

app.UseRouting();

// global cors policy
app.UseCors(x => x
.AllowAnyMethod()
.AllowAnyHeader()
.AllowAnyOrigin());
app.UseCors();

app.UseEndpoints(endpoints =>
{
Expand Down

0 comments on commit e0519cc

Please sign in to comment.