NoScript blocks scripts on local page even after temporary allowing them
Posted: Sun May 05, 2024 4:50 pm
I have a locally stored HTML page as a frontend for some js, that I created a few weeks ago. It worked fine in the beginning, but since several days ago, it occasionally refuses to execute the js, even if I temporary allow for local files. I'm getting Content-Security-Policy errors for the inline js then, because they violate the policy "script-src-attr 'none'". It doesn't load the js from file either though, nor the css, throwing a processing error "DOMException: CSSStyleSheet.cssRules getter: Not allowed to access cross-origin stylesheet". Firefox 125.0.3 on Xubuntu.
The weird thing is that it works totally fine on some days and not at all on others. I can also confirm that it is related to NoScrip, because it works as soon as I deactivate NoScrip entirely, in the Firefox addon settings.
I have no idea if it's related to the files being loaded from my harddrive, I never experienced this issue anywhere else. It works fine on jsfiddle.net, where I originally got it from, to have a copy available offline. I only did minor formatting changes and had to write the header. Here are the files: https://drive.google.com/drive/folders/ ... sp=sharing
The weird thing is that it works totally fine on some days and not at all on others. I can also confirm that it is related to NoScrip, because it works as soon as I deactivate NoScrip entirely, in the Firefox addon settings.
I have no idea if it's related to the files being loaded from my harddrive, I never experienced this issue anywhere else. It works fine on jsfiddle.net, where I originally got it from, to have a copy available offline. I only did minor formatting changes and had to write the header. Here are the files: https://drive.google.com/drive/folders/ ... sp=sharing