🐛 Fix bugs

This commit is contained in:
2025-09-21 02:00:57 +08:00
parent 001da9ae40
commit f63c934cee

View File

@@ -13,20 +13,11 @@ public static class ApplicationConfiguration
app.UseSwagger();
app.UseSwaggerUI();
app.UseRequestLocalization();
app.ConfigureForwardedHeaders(configuration);
app.UseCors(opts =>
opts.SetIsOriginAllowed(_ => true)
.WithExposedHeaders("*")
.WithHeaders("*")
.AllowCredentials()
.AllowAnyHeader()
.AllowAnyMethod()
);
app.UseWebSockets();
app.UseRateLimiter();
app.UseAuthentication();
@@ -36,11 +27,11 @@ public static class ApplicationConfiguration
return app;
}
public static WebApplication ConfigureGrpcServices(this WebApplication app)
{
app.MapGrpcService<RingServiceGrpc>();
return app;
}
}