Socket
Socket
Sign inDemoInstall

cors-proxy-with-https

Package Overview
Dependencies
20
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.20 to 1.0.21

13

lib/index.js

@@ -41,2 +41,15 @@ const https = require('https')

})
}, (req, res, proxy) => {
if (req.method === 'OPTIONS') {
res.setHeader('Access-Control-Allow-Origin', '*')
res.setHeader('Access-Control-Allow-Headers', '*')
res.setHeader('Access-Control-Allow-Methods', '*')
res.end()
return;
}
proxy.web(req, res, {
target: this.config.target,
secure: true
})
}).listen(8080);

@@ -43,0 +56,0 @@

2

package.json
{
"name": "cors-proxy-with-https",
"description": "Прокси для обхода CORS + поддержка HTTPS by devmkru",
"version": "1.0.20",
"version": "1.0.21",
"main": "./lib",

@@ -6,0 +6,0 @@ "bin": {

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