Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit dbef61f

Browse files
davidfowlReubenBond
authored andcommitted
Nuke the cors from the mobile BFF
1 parent 6ebde3f commit dbef61f

File tree

1 file changed

+0
-14
lines changed
  • src/ApiGateways/Mobile.Bff.Shopping/aggregator

1 file changed

+0
-14
lines changed

src/ApiGateways/Mobile.Bff.Shopping/aggregator/Program.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,6 @@
66
builder.Services.AddControllers();
77

88
builder.Services.AddHealthChecks(builder.Configuration);
9-
builder.Services.AddCors(options =>
10-
{
11-
// TODO: Read allowed origins from configuration
12-
options.AddPolicy("CorsPolicy",
13-
builder => builder
14-
.SetIsOriginAllowed((host) => true)
15-
.AllowAnyMethod()
16-
.AllowAnyHeader()
17-
.AllowCredentials());
18-
});
199

2010
builder.Services.AddApplicationServices();
2111
builder.Services.AddGrpcServices();
@@ -28,10 +18,6 @@
2818

2919
app.UseHttpsRedirection();
3020

31-
app.UseCors("CorsPolicy");
32-
app.UseAuthentication();
33-
app.UseAuthorization();
34-
3521
app.MapControllers();
3622
app.MapReverseProxy();
3723

0 commit comments

Comments
 (0)