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

cors-server

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cors-server

Command line script that will start a web server that will proxy any request received and add CORS headers to it

1.0.4
latest
Version published
Weekly downloads
24
500%
Maintainers
1
Weekly downloads
 
Created

About

cors-server is a command line script that will start a web server on a given port that will proxy any request received and add CORS headers to it.

Installation

Type npm install -g cors-server on the command line.

Usage

To start the server simply call it from the command line and supply a port number

cors-server <port>

After that, any requests sent to http://localhost:[port] will have Access-Control-Allow-Origin: * on the response.

e.g:

POST http://localhost:3005/http://www.google.com

FAQs

Package last updated on 25 May 2017

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