oneRain 2021-03-22 11:55:25 +08:00
parent d3ad99e0f6
commit 73c17da8ab
1 changed files with 2 additions and 1 deletions

View File

@ -192,7 +192,8 @@ namespace LeanCloud.Engine {
options.AddPolicy(LCEngineCORS, builder => {
builder.AllowAnyOrigin()
.WithMethods(LCEngineCORSMethods)
.WithHeaders(LCEngineCORSHeaders);
.WithHeaders(LCEngineCORSHeaders)
.SetPreflightMaxAge(TimeSpan.FromSeconds(86400));
});
});
}