Socket
Book a DemoInstallSign in
Socket

@hectorricardo/cors-proxy

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hectorricardo/cors-proxy

A simple, local, easy-to-setup proxy server with CORS enabled.

Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
14
-26.32%
Maintainers
1
Weekly downloads
 
Created
Source

cors-proxy

A simple, local, easy-to-setup proxy server with CORS enabled.

Installation:

npm install -g @hectorricardo/cors-proxy

Usage

cors-proxy <url> [options]

where url is the url of the server to be proxied.

Available options:

-p, --port The port the proxy should bind to

-r, --retry Retry with next port if current one is busy

-h, --help Show help

Example:

cors-proxy https://google.com -p 8080

will redirect all requests matching with http://localhost:8080/* to https://google.com.

Remaining part of the url will stay the same, i.e., a request made to http://localhost:8080/users/john will be proxied to https://google.com/users/john.

Keywords

cors

FAQs

Package last updated on 01 Jan 2020

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