[RESOLVED] "fetch" capability exclusively for code entered in the console
Posted: Mon Oct 05, 2020 12:20 pm
Hi,
I usually run my own code in the javascript console associated to certain web pages for which NoScript is configured to block everything but frames. Recently I had the need to perform requests via XHR/fetch and discovered that they are intercepted and blocked by NoScript. I noticed that the requests do work if I allow the "fetch" capability.
Questions:
1. Why does that happen? Is the code I enter in the console perhaps being injected into the web-page context such that NoScript is unable to distinguish it from third-party code?
2. Is it "safe" to allow the "fetch" capability so that it can be used (only) by my own code? I define "safe" as "NoScript continues to deny all capabilities (except frames, as previously noted), including scripting, for the web-page itself".
Thank you.
I usually run my own code in the javascript console associated to certain web pages for which NoScript is configured to block everything but frames. Recently I had the need to perform requests via XHR/fetch and discovered that they are intercepted and blocked by NoScript. I noticed that the requests do work if I allow the "fetch" capability.
Questions:
1. Why does that happen? Is the code I enter in the console perhaps being injected into the web-page context such that NoScript is unable to distinguish it from third-party code?
2. Is it "safe" to allow the "fetch" capability so that it can be used (only) by my own code? I define "safe" as "NoScript continues to deny all capabilities (except frames, as previously noted), including scripting, for the web-page itself".
Thank you.