Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/kaishuu0123/cors-reverse-proxy

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/kaishuu0123/cors-reverse-proxy

  • v1.0.2
  • Source
  • Go
  • Socket score

Version published
Created
Source

CORS Reverse Proxy

GitHub release Docker Pulls

Simple reverse proxy for CORS issue.

... has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Use Case

  • Local development
  • When you want to trust the resources of a other container
    • ex. minio, draw.io, piwigo etc ...

Usage

docker pull kaishuu0123/cors-reverse-proxy

docker run -it -d \
  -e CORS_REVERSE_PROXY_TARGET_URL=http://example.com \
  -e CORS_REVERSE_PROXY_HOST=0.0.0.0 \
  -p 8181:8081 \
  --name cors-reverse-proxy \
  kaishuu0123/cors-reverse-proxy

or

go build

./cors-reverse-proxy \
  --target-url http://example.com/ \
  --host 0.0.0.0
  --port 8888

Command Line Options & Environment Variables

CLI Option(Long)ShorthandEnvironment VariablesExampleDefault
--target-url-tCORS_REVERSE_PROXY_TARGET_URLhttp://example.com/
--host-hCORS_REVERSE_PROXY_HOST0.0.0.0localhost
--port-pCORS_REVERSE_PROXY_PORT88888081
--origin-oCORS_REVERSE_PROXY_ORIGINhttp://example.com/*
Inspired by: https://github.com/LordotU/local-cors-proxy-go/

FAQs

Package last updated on 19 Jul 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc