chore
parent
d3ad99e0f6
commit
73c17da8ab
|
@ -192,7 +192,8 @@ namespace LeanCloud.Engine {
|
||||||
options.AddPolicy(LCEngineCORS, builder => {
|
options.AddPolicy(LCEngineCORS, builder => {
|
||||||
builder.AllowAnyOrigin()
|
builder.AllowAnyOrigin()
|
||||||
.WithMethods(LCEngineCORSMethods)
|
.WithMethods(LCEngineCORSMethods)
|
||||||
.WithHeaders(LCEngineCORSHeaders);
|
.WithHeaders(LCEngineCORSHeaders)
|
||||||
|
.SetPreflightMaxAge(TimeSpan.FromSeconds(86400));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue