Socket
Socket
Sign inDemoInstall

cors-server

Package Overview
Dependencies
112
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
78
decreased by-14.29%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Last updated on 25 May 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc