diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2021-02-09 08:43:09 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2021-02-09 08:43:09 +0000 |
| commit | 33e63ff5ae3b1f97262018a34e4c5ffe31fcc998 (patch) | |
| tree | 5c3c63d7cec9bfead21bd99bb02f13b65ca307b0 | |
| parent | include CORS proxy nginx config (diff) | |
| download | fedidag-33e63ff5ae3b1f97262018a34e4c5ffe31fcc998.tar.gz fedidag-33e63ff5ae3b1f97262018a34e4c5ffe31fcc998.zip | |
remove JS proxy
| -rw-r--r-- | src/cors-proxy.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/cors-proxy.js b/src/cors-proxy.js deleted file mode 100644 index 905eb0f..0000000 --- a/src/cors-proxy.js +++ /dev/null @@ -1,12 +0,0 @@ -var host = process.env.HOST || '127.0.0.1'; -var port = process.env.PORT || 8088; - -var cors_proxy = require('cors-anywhere'); -cors_proxy.createServer({ - originWhitelist: [], // Allow all origins - requireHeader: ['origin', 'x-requested-with'], - removeHeaders: ['cookie', 'cookie2'], - checkRateLimit: null, -}).listen(port, host, function() { - console.log('Running CORS Anywhere on ' + host + ':' + port); -}); |
