fix(cors): cache preflight with Access-Control-Max-Age=600 (PMS-389) #289
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/PMS-389-cors-max-age"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The CorsLayer set allow_origin/methods/headers/credentials but no max_age, so browsers got no Access-Control-Max-Age and re-issued an OPTIONS preflight before most credentialed requests. docs/cors.md §5 specifies 600. Add
.max_age(600s).Verified in-container (
just pre-commit): fmt + clippy -D warnings + check + unit + doc tests green.Fixes PMS-389.