Skip to content

Commit

Permalink
cors-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JDreyka committed May 5, 2021
1 parent c8925f0 commit 3266e23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions react.pizza.backend/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
if (env.IsDevelopment())
app.UseDeveloperExceptionPage();

app.UseCors(x => x.AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin());

app.UseSwagger();
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "react.pizza.backend v1"));

Expand Down

0 comments on commit 3266e23

Please sign in to comment.