1.0.0 • Published 8 years ago

node-CORSproxy v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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 github@mkrause.info (http://martinkr.github.io)