[Webkit-unassigned] [Bug 160432] XHR Remove Headers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 1 23:28:40 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=160432

--- Comment #1 from youenn fablet <youennf at gmail.com> ---
XHR is a rather high level API that works well in most cases but lacks some flexibility.
You might want to look at the fetch API which gives more flexibility to the web developper.
For instance, with the fetch API, there is an option to control the referrer.

To be noted though that some headers cannot be let under the control of the web application for security purposes.

I don't think that there is a way to remove all headers you want with the fetch API.
That said, HTTP/2 uses HPACK for header representation and for the headers you are mentioning (except referer), it will be very good at representing them in a few bytes.

So my suggestion would be to migrate to HTTP/2 and start using the fetch API wherever available.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160802/a14cb555/attachment.html>


More information about the webkit-unassigned mailing list