Installation of unsafe User-Agent header denied - Chrome extension

Is there a way to give permission to change the User-Agent header with the chrome extension using XMLHttpRequest?

I tried using webRequest.onBeforeSendHeaders, but it does not start for XMLHttpRequests, which is also mentioned here Chrome extension: webRequest.onBeforeSendHeaders behaves strangely

Sorry if this question was duplicated elsewhere, I cannot find any solution.

+4
source share

Source: https://habr.com/ru/post/1533740/


All Articles