corsify-proxy
HTTP proxy that adds CORS headers
Last updated 5 years ago by pwnall .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install corsify-proxy 
SYNC missed versions from official npm registry.

Corisfy Proxy

Deploy Build Status API Documentation NPM Version

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.

Current Tags

  • 0.1.0                                ...           latest (5 years ago)

1 Versions

  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |