Closed
Bug 1607615
Opened 1 year ago
Closed 1 year ago
Allow CORS preflights with a default of 5 seconds for expiry if Access-Control-Max-Age hasn't been sent
Categories
(Core :: Networking: HTTP, defect, P2)
Core
Networking: HTTP
Tracking
()
RESOLVED
FIXED
mozilla74
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: ehsan, Assigned: ehsan)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged], [wptsync upstream])
Attachments
(1 file)
This is done for web compatibility reasons. Both WebKit and Blink pass the wpt test that I'm fixing with this patch, but we fail in that test because the CORS preflight triggered in it doesn't get cached as it is missing an Access-Control-Max-Age
header.
Assignee | ||
Comment 1•1 year ago
|
||
The default expiry value is chosen based on what Chromium uses:
https://source.chromium.org/chromium/chromium/src/+/master:services/network/public/cpp/cors/preflight_result.cc;l=27;drc=529117e5ed802c91a5cf192a72b4097d27fcb928?originalUrl=https:%2F%2Fcs.chromium.org%2F
Assignee | ||
Updated•1 year ago
|
Blocks: wpt.fyi-firefox-fails
Assignee | ||
Comment 2•1 year ago
|
||
Spec issue: https://github.com/whatwg/fetch/issues/990
Updated•1 year ago
|
Priority: -- → P2
Whiteboard: [necko-triaged]
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cd769fb3a217 Allow CORS preflights with a default of 5 seconds for expiry if Access-Control-Max-Age hasn't been sent; r=mayhemer
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/21170 for changes under testing/web-platform/tests
Whiteboard: [necko-triaged] → [necko-triaged], [wptsync upstream]
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Comment 6•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox74:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
Upstream PR merged by moz-wptsync-bot
You need to log in
before you can comment on or make changes to this bug.
Description
•