w3c / beacon

Beacon
https://w3c.github.io/beacon/
Other
46 stars 22 forks source link

Should cross-origin beacons with an ArrayBuffer payload do a CORS preflight? #45

Closed cdumez closed 6 years ago

cdumez commented 6 years ago

If I understand the processing model [1] correctly:

As a result, my understanding would be that a CORS-preflight should be done. Based on my local testing, I don't think Blink does such preflight.

[1] https://w3c.github.io/beacon/#sec-processing-model [2] https://fetch.spec.whatwg.org/#concept-bodyinit-extract

igrigorik commented 6 years ago

(updated)

As a result, my understanding would be that a CORS-preflight should be done. Based on my local testing, I don't think Blink does such preflight.

Yes, that's a bug, see crbug.com/720283; will be fixed once we land crbug.com/695939.

I believe processing algorithm is correct.

On a related note, and as a heads up, ptal @ https://github.com/w3c/web-platform-tests/pull/6655.

igrigorik commented 6 years ago

@cdumez I don't believe there is anything spec actionable here. Can we resolve this one?

cdumez commented 6 years ago

Sure. You answered my question, thank you.