shanji 3 years ago
parent
commit
2d09b57939
  1. 4
      BBWY.Server.API/Startup.cs

4
BBWY.Server.API/Startup.cs

@ -64,7 +64,7 @@ namespace BBWY.Server.API
services.AddHttpClient();
services.AddCors(options =>
{
options.AddDefaultPolicy(p =>
options.AddPolicy("cors", p =>
{
p.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader();
});
@ -152,6 +152,8 @@ namespace BBWY.Server.API
app.UseRouting();
app.UseCors("cors");
app.UseAuthorization();
app.UseEndpoints(endpoints =>

Loading…
Cancel
Save