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

    cors-proxy-with-https

Прокси для обхода CORS + поддержка HTTPS by devmkru


Version published
Weekly downloads
10
increased by11.11%
Maintainers
1
Install size
925 kB
Created
Weekly downloads
 

Readme

Source

cors-proxy-with-https

HTTPS-прокси, который добавляет заголовок cors в ответы сервера. Полезно, если вам нужно использовать API, который не разрешает запросы из разных источников.

Опции:
  • -h host (default: local address (192.X.X.X))
  • -p port (default: 8000)
  • -t target (default: 127.0.0.1), example: https://api.my.server.com
  • -k key ключ ssl (path/to/key.pem)
  • -c cert сертификат ssl (path/to/cert.pem)

Установка

npm i cors-proxy-with-https --save-dev

package.json

"scripts": {
    ....
    "startNoCorsProxy": "cors-proxy-with-https -c path/to/cert.pem -k path/to/key.pem -h 127.0.0.1 -p 8000 -t https://server.api.ru"
    ....
}

Keywords

FAQs

Last updated on 02 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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