🐛 Remove duplicate CORS

This commit is contained in:
2025-09-21 01:58:08 +08:00
parent 4efbfa948a
commit 001da9ae40
2 changed files with 1 additions and 22 deletions

View File

@@ -18,15 +18,6 @@ public static class ApplicationBuilderExtensions
app.UseAuthorization();
app.MapControllers();
app.UseCors(opts =>
opts.SetIsOriginAllowed(_ => true)
.WithExposedHeaders("*")
.WithHeaders("*")
.AllowCredentials()
.AllowAnyHeader()
.AllowAnyMethod()
);
app.MapTus("/api/tus", _ => Task.FromResult(TusService.BuildConfiguration(tusStore, app.Configuration)));
return app;