Re: [whatwg/fetch] Clarify the way CORB should be applied to beacons (#882)

AFAIK, `fetch()` + `keepalive` also has its restrictions. `fetch()` + `keepalive` is sometimes disallowed if a preflight request has to be made for your request. Basically if your request has any non-CORS friendly request headers in them, a preflight request (OPTIONS) will first be made. If this happens, the browser can throw an error that says "Preflight request for request with keepalive specified is currently not supported".

But if your request headers is CORS friendly, then a preflight will not be made and `fetch()` + `keepalive` should work just fine.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/882#issuecomment-591007282

Received on Tuesday, 25 February 2020 18:48:03 UTC