Customize `X-Requested-With` Header
By default, WebView sends an X-Requested-With header with the application ID (com.stoutner.privacybrowser.standard) with every page load. It looks like it is possible to change the header, but not to leave it out (Lightning sends the header with a null value).
At a minimum, it would be nice to allow the user to set a custom header. Ultimately, we might need to embed a custom WebView to get full control of the functionality.
#3 Updated by Soren Stoutner over 2 years ago
- Status changed from New to In Progress
This is partially fixed. The initial request to each website loads `X-Requested-With` paired with a null value.
However, requests for resources like images and css load `X-Requested-With:com.stoutner.privacybrowser.standard`.
This is because Google wants to personally make my life difficult.
#6 Updated by Soren Stoutner over 2 years ago
Beginning with commit https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=87cd85777034a3b7627b68b3d60004fb20198727 Privacy Browser will send a null value for `X-Requested-With` on initial web requests. This will be included in Privacy Browser 1.9.