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