Socket
Socket
Sign inDemoInstall

corsproxy

Package Overview
Dependencies
150
Maintainers
5
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.14 to 1.0.0

bin/corsproxy

30

package.json
{
"name": "corsproxy",
"description": "standalone CORS proxy and library for your convenience",
"version": "0.2.14",
"main": "./lib/corsproxy.js",
"description": "standalone CORS proxy",
"version": "1.0.0",
"main": "./index.js",
"author": {

@@ -10,15 +10,14 @@ "name": "Gregor Martynus",

},
"contributors": {
"name": "Jan Lehnardt",
"email": "jan@apache.org"
},
"dependencies": {
"good": "^6.1.2",
"good-console": "^5.0.0",
"hapi": "^8.4.0",
"http-proxy": "~0.10"
},
"bin": {
"corsproxy": "./bin/index.js"
"corsproxy": "./bin/corsproxy"
},
"engines": {
"node": ">=0.6.x",
"npm": ">=1.1.x"
"scripts": {
"start": "./bin/corsproxy",
"test": "standard"
},

@@ -28,3 +27,10 @@ "repository": {

"url": "https://github.com/gr2m/CORS-Proxy"
}
},
"engines": {
"node": "0.10.x"
},
"devDependencies": {
"standard": "^3.7.2"
},
"license": "MIT"
}

54

README.md

@@ -1,46 +0,24 @@

## Installation
# corsproxy
As a standalone tool:
> standalone CORS proxy
$ npm install -g corsproxy
## Setup
As a dependency:
```
npm install -g corsproxy
corsproxy
# with custom port: CORSPROXY_PORT=1234 corsproxy
```
$ npm install corsproxy
## Usage
The cors proxy will start at http://localhost:1337.
To access another domain, use the domain name (including port) as the first folder, e.g.
## Running
- http://localhost:9292/localhost:3000/sign_in
- http://localhost:9292/my.domain.com/path/to/resource
- etc etc
Standalone:
## License
$ corsproxy
CORS Proxy started on localhost:9292
Standalone with custom host/port:
$ corsproxy 0.0.0.0 1234
CORS Proxy started on 0.0.0.0:1234
As a dependency:
var cors_proxy = require("corsproxy");
var http_proxy = require("http-proxy");
http_proxy.createServer(cors_proxy).listen(1234);
With custom target:
var cors_proxy = require("corsproxy");
var http_proxy = require("http-proxy");
cors_proxy.options = {
target: "http://0.0.0.0:5984"
};
http_proxy.createServer(cors_proxy).listen(1234);
## Usage
The cors proxy will start at http://localhost:9292. To access another domain, use the domain name (including port) as the first folder, e.g.
http://localhost:9292/localhost:3000/sign_in
http://localhost:9292/my.domain.com/path/to/resource
etc etc
MIT
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