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

[Gecko Bug 1607615] Allow CORS preflights with a default of 5 seconds for expiry if Access-Control-Max-Age hasn't been sent #21170

Merged
merged 1 commit into from Jan 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions cors/preflight-cache.htm
Expand Up @@ -60,6 +60,15 @@ <h1>Preflight cache</h1>
},
'preflight for x-print should be cached')

test(function() {
var time = new Date().getTime()
var client = new XMLHttpRequest()

var id = did_preflight(true, client, {extra:'max_age='})
did_preflight(false, client, {extra:'max_age=', token: id})
},
'age = blank, should be cached')

test(function() {
var time = new Date().getTime()
var client = new XMLHttpRequest()
Expand Down