Cors
This commit is contained in:
+2
-2
@@ -81,12 +81,12 @@ builder.Services.AddCors(options =>
|
||||
});
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
app.UseCors("AllowAll");
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
|
||||
app.UseMiddleware<GameAuthApi.Middleware.TokenBlacklistMiddleware>();
|
||||
app.UseCors("AllowAll");
|
||||
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user