|
|
|
|
|
by sorenjan
2482 days ago
|
|
> Cross-origin communication: In Manifest v3, content scripts will have the same permissions as the page they are injected in. We are planning to implement this change. What will this mean for GM.xmlHttpRequest in userscripts? Adding content from several different sites with userscripts can be very powerful. |
|
The change[1] only affects content scripts because they run in the same process as the website. You're still able to fetch arbitrary origins in a background page. So GM has to move the fetch to the background page, then send the content to the script via message passing.
[1] https://www.chromium.org/Home/chromium-security/extension-co... .