This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://fetch.spec.whatwg.org/#cors-preflight-fetch Need to define client and context for CORS preflight fetches. Probably deserves its own context and client should be copied from the actual fetch.
Mike, this might be of interest to you. What context to use for CORS preflight.
Why would you suggest a new context? If I'm requesting an image with the crossorigin flag, I think I'd expect the CORS preflight to be blocked by `img-src 'none'`. Without thinking about it too hard, I'd suggest that the context be copied from the fetch as well as the client.
Fair I guess. I was thinking new context since some parameters (such as credentials) are different, but what you say makes much more sense.
https://github.com/whatwg/fetch/commit/54b2bfedc0079f1af793a957e9e84584ec9f7a03