Skip to content
evg4bPublic

Latest commit

 

History

404 Commits

Folders and files

Repository files navigation

UNCORS logo

A simple dev HTTP/HTTPS proxy for replacing CORS headers.

Go version GitHub Release License GitHub Actions Workflow Status
NPM Downloads Docker Pulls GitHub Downloads (all assets, all releases)
Coverage Reliability Rating Security Rating Lines of Code

Core features

The full documentation is on the wiki.

Quick install

Homebrew (macOS, Linux)

brew install evg4b/tap/uncors

Scoop (Windows)

scoop bucket add evg4b https://github.com/evg4b/scoop-bucket.git
scoop install evg4b/uncors

npm (cross-platform)

# Run without installing
npx -y uncors --from 'http://localhost:8080' --to 'https://github.com'
# Or add it to your project
npm install uncors --save-dev
# yarn add uncors --dev
# pnpm add -D uncors

Docker (cross-platform)

docker run -p 80:80 evg4b/uncors --interactive=false --from 'http://local.github.com' --to 'https://github.com'

Stew (cross-platform)

stew install evg4b/uncors

Other options, including prebuilt binaries and building from source, are described on the Installation wiki page.

Usage

Start a proxy from http://localhost:8080 to https://github.com:

uncors --from 'http://localhost:8080' --to 'https://github.com'

For larger setups, put the mappings in a YAML file and run uncors --config .uncors.yaml. The Configuration wiki page describes every option.

Caution

Rewriting CORS headers weakens browser security. UNCORS is meant for local development and testing. Do not run it in production or expose it as a remote proxy. It has not had a security review.

Stargazers over time

Stargazers over time

Support the project

ko-fi

Releases

Sponsor this project

Packages

Used by

Contributors

Languages