diff --git a/Engine/LCEngine.cs b/Engine/LCEngine.cs index 4951329..f29b83d 100644 --- a/Engine/LCEngine.cs +++ b/Engine/LCEngine.cs @@ -192,7 +192,8 @@ namespace LeanCloud.Engine { options.AddPolicy(LCEngineCORS, builder => { builder.AllowAnyOrigin() .WithMethods(LCEngineCORSMethods) - .WithHeaders(LCEngineCORSHeaders); + .WithHeaders(LCEngineCORSHeaders) + .SetPreflightMaxAge(TimeSpan.FromSeconds(86400)); }); }); }