Skip to content

xtrycatchx/cors-bypass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cors-bypass

Small utility proxy to bypass cross-origin resource sharing (CORS) of a target domain

Installation

npm install xtrycatchx/cors-bypass#master --save

Usage

Start the cors-bypass server, via javascript

const CorsBypass = require('cors-bypass')

const targetDomain = 'https://target.domain.com/'
const corsBypassPort = 2000

const cors = new CorsBypass(targetDomain, corsBypassPort)
cors.start()

And once started, do an HTTP request to the target domain

curl http://localhost:2000/api/v1/rates

About

Small utility proxy to bypass cross-origin resource sharing (CORS) of a target domain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors