Skip to content

Bypass CORS on firefox based browsers on certain requests

Notifications You must be signed in to change notification settings

Philip2809/bypass-cors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bypass CORS

Have you experianced the feeling of "Ohh, I want to make this simple html page that fetches and displays data from some server(s) and show them in a way I like" only to be let down by The Same Origin Policy disallows reading the remote resource?

Well, I have felt so multiple times so I created this browser extension to bypass cors and let me fetch the data anyway! This extension was made to allow for this only on your browser and will only work for browsers where this extension is installed and setup.

The url must be be a valid path, if it is only the host it needs to end with a /. Wildcard * can also be used in the url. Check Match patterns for more info

Showcase

Permissions

  • storage - to store urls
  • webRequest - to get/set the headers
  • webRequestBlocking - to get/set the headers
  • <all_urls> - for the extension to work on any site

Future development

I don't really plan to develop this further, it works like I wanted it to but here is some ideas for a rainy day:

  • Set CORS headers only if on the originUrl matches some user set value, per url or group
  • Add validation of input

The settings.js and most of the css was pretty much written by an LLM.

About

Bypass CORS on firefox based browsers on certain requests

Resources

Stars

Watchers

Forks

Packages

No packages published