Skip to content

Commit

Permalink
Try using several CORS proxies to NPM registry, but they all have iss…
Browse files Browse the repository at this point in the history
…ues :/
  • Loading branch information
deathcap committed Feb 10, 2015
1 parent 5099bfb commit 944d03d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion webnpm.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,16 @@ function main() {

global.npm = npm;

var config = {};
var config = {
// until https://github.com/npm/npm-registry-couchapp/issues/108#issuecomment-73352201 add support for CORS headers
// from https://github.com/Rob--W/cors-anywhere/
// fails with 'A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true.
// Origin 'http://localhost:9966' is therefore not allowed access.'
//registry: 'http://cors-anywhere.herokuapp.com/http://registry.npmjs.org'
registry: 'http://cors.maxogden.com/http://registry.npmjs.org'
// from https://github.com/zeke/npm-registry-cors-proxy, but it does not allow OPTIONS - '404 Not Found Cannot OPTIONS /voxel-engine'
//registry: 'http://npm-registry-cors-proxy.herokuapp.com'
};

npm.load(config, function(err) {
if (err) {
Expand Down

0 comments on commit 944d03d

Please sign in to comment.