Is there some way to set the default Accept-Language header via the Chrome DevTools Protocol ?
I know i can manually set the header on individual crafted Fetch/XHR requests, that's not what I want to do, rather I want to set the default header.
Is there some way to set the default Accept-Language header via the Chrome DevTools Protocol ?
I know i can manually set the header on individual crafted Fetch/XHR requests, that's not what I want to do, rather I want to set the default header.
This can be set with Network.setUserAgentOverride - but it's made needlessly complex by making the "userAgent" parameter required (it should have been optional IMO, but most likely the protocol developers did not think anybody would want to change only accept-language)
example of setting it with chrome-php/chrome:
in addition to the Accept-Language header, this also sets
navigator.languages
so javascript-based language detection will detect the new language :)