Skip to content

Commit

Permalink
A fix made to make CORS policies accounted for static files as well
Browse files Browse the repository at this point in the history
  • Loading branch information
peterliapin committed Nov 24, 2024
1 parent be50d09 commit be6da63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OnlineSales/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ public static async Task Main(string[] args)
await MigrateOnStartIfRequired(app, builder);

app.UseSwagger();
app.UseSwaggerUI();
app.UseSwaggerUI();
app.UseDefaultFiles();
app.UseStaticFiles();
app.UseCors();
app.UseStaticFiles();

app.UseAuthentication();
app.UseAuthorization();
Expand Down

0 comments on commit be6da63

Please sign in to comment.