corsify-proxy
v0.1.0
Published
HTTP proxy that adds CORS headers
Downloads
3
Readme
Corisfy Proxy
This is a node.js HTTP proxy that adds Cross-Origin Resource Sharing (CORS) headers to incoming HTTP requests, for use with XMLHttpRequest level 2.
The server was designed to be deployed to Heroku using free resources, so it fits in a single dyno. The code has great test coverage using mocha.
Easy Setup
Click the ''Deploy to Heroku'' button at the top of this page to create your own W3gram server running on Heroku. Don't worry, the project only uses free add-ons!
Make sure to add both your development server (e.g., http://localhost:3000
)
and your production sever (e.g., https://www.yourapp.com
) to the list of
allowed origins.
Make requests to the CORS-disabled server, including the protocol and path.
curl -i https://corsify-test.herokuapp.com/https://google.com
Development Setup
Install all dependencies.
npm install
Run the server in development mode.
npm start
License
This project is Copyright (c) 2014 Victor Costan, and distributed under the MIT License.