🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/loveandcode/simple_cors_go_proxy

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/loveandcode/simple_cors_go_proxy

v0.0.0-20210319063106-4f15b3285363
Source
Go
Version published
Created
Source

Super Simple CORS Proxy Server

Requirement

go version 1.15.5

Quick Start

1. Configuration .env file

# Reverse Proxy Target Host Information
TARGET_HOST=
# This Proxy Server Port
LOCAL_PORT=
# CORS Allow Origin Information. It is Client host information (i.e https://192.168.93.1:4000)
ACCESS_CONTROL_ALLOWS_ORIGIN=
# Credentials Flag for Sharing Cookie between origin resource server, Must Set as true
WITH_CREDENTIALS=
# Optional, Session Cookie Name In Resource Server (If, not using cookie, let that empty)
SESSION_COOKIE_NAME=
# SSL Key File Path For Running Proxy Server as Https
SSL_KEY_PATH=
# SSL Cert File Path For Running Proxy Server as Https
SSL_CERT_PATH=

2. Run Server

go run main.go

FAQs

Package last updated on 19 Mar 2021

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