corsproxy
Advanced tools
Comparing version 0.2.14 to 1.0.0
{ | ||
"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" | ||
} |
@@ -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 |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10
0
0
0
5704
4
1
58
25
+ Addedgood@^6.1.2
+ Addedgood-console@^5.0.0
+ Addedhapi@^8.4.0
+ Addedaccept@1.1.0(transitive)
+ Addedammo@1.0.1(transitive)
+ Addedb64@2.0.1(transitive)
+ Addedboom@2.10.1(transitive)
+ Addedcall@2.0.2(transitive)
+ Addedcatbox@4.3.0(transitive)
+ Addedcatbox-memory@1.1.2(transitive)
+ Addedcontent@1.0.2(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcryptiles@2.0.5(transitive)
+ Addedgood@6.6.3(transitive)
+ Addedgood-console@5.3.2(transitive)
+ Addedgood-squeeze@2.1.0(transitive)
+ Addedh2o2@4.0.2(transitive)
+ Addedhapi@8.8.1(transitive)
+ Addedheavy@3.0.1(transitive)
+ Addedhoek@2.16.3(transitive)
+ Addedinert@2.1.6(transitive)
+ Addediron@2.1.3(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedisemail@1.2.0(transitive)
+ Addeditems@1.1.1(transitive)
+ Addedjoi@6.10.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedkilt@1.1.1(transitive)
+ Addedlru-cache@2.6.5(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmimos@2.0.2(transitive)
+ Addedmoment@2.11.2(transitive)
+ Addednigel@1.0.1(transitive)
+ Addedpeekaboo@1.0.0(transitive)
+ Addedpez@1.0.0(transitive)
+ Addedqs@4.0.0(transitive)
+ Addedreadable-stream@1.0.34(transitive)
+ Addedshot@1.7.0(transitive)
+ Addedstatehood@2.1.1(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedsubtext@1.1.1(transitive)
+ Addedthrough2@0.6.5(transitive)
+ Addedtopo@1.1.0(transitive)
+ Addedtraverse@0.6.6(transitive)
+ Addedvise@1.0.0(transitive)
+ Addedvision@2.0.1(transitive)
+ Addedwreck@6.3.0(transitive)
+ Addedxtend@4.0.2(transitive)