Skip to content
This repository has been archived by the owner on Jan 4, 2018. It is now read-only.
/ CORS-Proxy Public archive

über-simple node.js-Proxy to enable CORS request for any website

Notifications You must be signed in to change notification settings

gr2m/CORS-Proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

corsproxy

standalone CORS proxy

Build Status Dependency Status devDependency Status

NPM

Setup

npm install -g corsproxy
corsproxy
# with custom port: CORSPROXY_PORT=1234 corsproxy
# with custom host: CORSPROXY_HOST=localhost corsproxy
# with debug server: DEBUG=1 corsproxy
# with custom payload max bytes set to 10MB (1MB by default): CORSPROXY_MAX_PAYLOAD=10485760 corsproxy

Docker

It is also possible to run the cors proxy in a docker container:

# Build image
docker build -t corsproxy .

# Run container
docker run -p 1337:1337 --name corsproxy -d corsproxy

Usage

The cors proxy will start at http://localhost:1337. To access another domain, use the domain name (including port) as the first folder, e.g.

By default the cors proxy will only answer requests sent to localhost. To use another domain (e.g. machine name) set an enviroment variable CORSPROXY_HOST to the required value before launching.

License

MIT

About

über-simple node.js-Proxy to enable CORS request for any website

Resources

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published