node-CORSproxy
v1.0.0
Published
A simple proxy adding CORS-headers to you request.
Downloads
2
Maintainers
Readme
node-CORSproxy
A simple proxy adding CORS-headers to you request.
Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the resource originated. (https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)
Useful for local development against an API wich does not yet provide the appropriate CORS-Header.
Install
$ npm install
Start
$ npm start
Request
http://localhost:3000/add/cors/http://google.com
Options
You can specify a custom port on startup
$ PORT=3001 node --use_strict ./main.js
License
Licensed under the MIT license.
Copyright (c) 2016 Martin Krause [email protected] (http://martinkr.github.io)