Skip to content

JimLin94/local-no-cors-dev-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Launch a browser without CORS.

Run this bash script and develop your application on your local machine if you come across with CORS issue.

It supports MacOS and Linux OS only.

Run it with your front-end project.

Basic usage

bash ./no-cors-chrome.sh

Run it on MacOS.

Make sure the path of Chrome is correct. If not, replace

    # Replace `/Applications/Google\` with the correct path if Chrome doesn't install in default path.
    open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ ...

Run it with Node project.

Run the script with the starting script.

// package.json

...
"scripts": {
    "start": "bash ./no-cors-chrome.sh && yarn start"
}

TODO:

Make it support for Firefox.

About

Launch a temporary Chrome with CORS restriction on your local machine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages