You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Beacon standard doesn't allow specifying HTTP headers in the request (except for Content-Type when the Blob API is used).
We'd like to specify additional headers in the HTTP beacon (for example, when using zero-rating to indicate to ISPs that a request should not count against a user's data transmission quota).
This would require updating:
§ 3.1 (sendBeacon Method) — add additional optional parameter httpHeaders to include object whose key-value pairs are included in the request
§ 3.2 (Processing Model) — update headerList logic to start out by populating list from httpHeaders, if non-null
The text was updated successfully, but these errors were encountered:
#27 is our current proposal for adding Headers/Method. I need to complete that PR and then browsers need to implement, but that is likely where this will be solved.
#27#27 is our current proposal for
adding Headers/Method. I need to complete that PR and then browsers need to
implement, but that is likely where this will be solved.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #30 (comment)
@bhamiltoncx Fetch (spec) integration has landed: whatwg/fetch#388 (comment). Once that's implemented, you'll be able to set custom headers/methods/etc, via fetch.
Currently, the Beacon standard doesn't allow specifying HTTP headers in the request (except for
Content-Type
when the Blob API is used).We'd like to specify additional headers in the HTTP beacon (for example, when using zero-rating to indicate to ISPs that a request should not count against a user's data transmission quota).
This would require updating:
httpHeaders
to include object whose key-value pairs are included in the requestheaderList
logic to start out by populating list fromhttpHeaders
, if non-nullThe text was updated successfully, but these errors were encountered: