Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client API: Allow browsers to cache CORS preflight requests #935

Closed
floogulinc opened this issue Jul 18, 2021 · 1 comment
Closed

Client API: Allow browsers to cache CORS preflight requests #935

floogulinc opened this issue Jul 18, 2021 · 1 comment
Labels

Comments

@floogulinc
Copy link
Collaborator

When responding to an OPTIONS request Hydrus should include a Access-Control-Max-Age header to allow browsers to cache the Access-Control-Allow-Methods and Access-Control-Allow-Headers info instead of having to redo the preflight check for each request. More info here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age

I think a reasonable value would be 24 hours which is 86400 seconds.

@floogulinc
Copy link
Collaborator Author

Added in 502

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant