cors-proxy-with-https
Advanced tools
Comparing version 1.0.22 to 1.0.23
@@ -32,2 +32,4 @@ const https = require('https') | ||
res.setHeader('Access-Control-Allow-Origin', '*') | ||
res.setHeader('Access-Control-Allow-Origin', '*'); | ||
res.setHeader('Access-Control-Allow-Methods', 'POST, GET, OPTIONS'); | ||
}) | ||
@@ -51,2 +53,7 @@ | ||
proxy.on('proxyRes', function(proxyRes, req, res) { | ||
res.setHeader('Access-Control-Allow-Origin', '*'); | ||
res.setHeader('Access-Control-Allow-Methods', 'POST, GET, OPTIONS'); | ||
}); | ||
proxy.web(req, res, { | ||
@@ -53,0 +60,0 @@ target: this.config.target, |
{ | ||
"name": "cors-proxy-with-https", | ||
"description": "Прокси для обхода CORS + поддержка HTTPS by devmkru", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"main": "./lib", | ||
@@ -6,0 +6,0 @@ "bin": { |
6047
111