Bug 466533

Summary: Greasemonkey GM_xmlhttpRequest doesn't bypass CORS
Product: [Applications] Falkon Reporter: Schimon Jehudah <sjehuda>
Component: extensionsAssignee: David Rosca <nowrep>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 22.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Switch lines 32/33 to test with the web extension
Current User.JS script from https://openuserjs.org/scripts/sjehuda/FREEdirector
FREEdirector with XHR
Another userscript which I find useful for Falkon https://openuserjs.org/scripts/sjehuda/no-www

Description Schimon Jehudah 2023-02-27 15:23:50 UTC
Attached a userscript that has been tested successfully with the Greasemonkey web extension.
Comment 1 Schimon Jehudah 2023-02-27 15:24:55 UTC
Created attachment 156790 [details]
Switch lines 32/33 to test with the web extension
Comment 2 Schimon Jehudah 2023-03-02 13:40:25 UTC
Created attachment 156919 [details]
Current User.JS script from https://openuserjs.org/scripts/sjehuda/FREEdirector

This is a redirection script without XHR for checking status of selected instance
Comment 3 Schimon Jehudah 2023-03-02 13:44:52 UTC
Created attachment 156920 [details]
FREEdirector with XHR

This User.JS script has a response status check using XHR. It works with other userscript managers  but not with Falkon.

> Access to XMLHttpRequest at 'https://anonymousoverflow.esmailelbob.xyz/' from origin 'https://stackoverflow.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Comment 4 Schimon Jehudah 2023-03-06 08:15:05 UTC
Created attachment 157030 [details]
Another userscript which I find useful for Falkon https://openuserjs.org/scripts/sjehuda/no-www