🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

corsify-proxy

HTTP proxy that adds CORS headers

0.1.0
latest
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created

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.

Keywords

FAQs

Package last updated on 31 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts