CORS sur 8082 pour docker

pull/9/head^2
Clement FERRERE 3 years ago
parent 2aeb4b9aac
commit ef2a5141d9
  1. 2
      Collaborateur_Epa_Back/espacecollab.backend.api/Startup.cs

@ -38,7 +38,7 @@ public class Startup
app.UseDeveloperExceptionPage(); app.UseDeveloperExceptionPage();
} }
app.UseCors( app.UseCors(
options => options.WithOrigins("http://localhost:4200").AllowAnyMethod().AllowAnyHeader() options => options.WithOrigins("http://localhost:4200", "http://localhost:8082").AllowAnyMethod().AllowAnyHeader()
); );
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(); app.UseSwaggerUI();

Loading…
Cancel
Save