Closed Bug 1186589 Opened 10 years ago Closed 10 years ago

Ensure CORS preflight requests aren't intercepted

Categories

(Core :: DOM: Service Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: jdm, Assigned: jdm)

References

Details

Attachments

(1 file)

Right now the fact that they aren't is an incidental implementation detail, since we skip the HTTP cache for non-GET/POST/HEAD requests in OpenCacheEntry.
Jonas, let me know if there's someone else that could/should review this.
Attachment #8637504 - Flags: review?(jonas)
Comment on attachment 8637504 [details] [diff] [review] Ensure CORS preflight requests are never intercepted I can only verify that this patch implements the described behavior. I have no idea if that behavior is a good idea or not. Leaving that to the ServiceWorker folks who will surely make sure that this doesn't cause security issues.
Comment on attachment 8637504 [details] [diff] [review] Ensure CORS preflight requests are never intercepted Ehsan, the fetch spec description of CORS states that it requires an HTTP-network-or-cache request (which explicitly does not invoke [[Handle Fetch]]). Does this patch make sense accordingly?
Attachment #8637504 - Flags: feedback?(ehsan)
Comment on attachment 8637504 [details] [diff] [review] Ensure CORS preflight requests are never intercepted Review of attachment 8637504 [details] [diff] [review]: ----------------------------------------------------------------- Yes, this makes sense. Thanks!
Attachment #8637504 - Flags: feedback?(ehsan) → feedback+
url: https://hg.mozilla.org/integration/mozilla-inbound/rev/213875242ee5636f0e052ede2da4a69a975ea096 changeset: 213875242ee5636f0e052ede2da4a69a975ea096 user: Josh Matthews <josh@joshmatthews.net> date: Thu Jul 23 10:25:12 2015 -0400 description: Bug 1186589 - Ensure CORS preflight requests are never intercepted. r=sicking
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: