A simple dev HTTP/HTTPS reverse proxy for replacing CORS headers.
npm install uncors
A simple dev HTTP/HTTPS proxy for replacing CORS headers.
- CORS header replacement
- Wildcard host mapping
- HTTPS support with auto-generated certificates
- Response mocking
- Script handler (Lua scripting with JSON support)
- HTTP/HTTPS proxy support
- Static file serving
- Response caching
- Request rewriting
Full documentation can be found on the wiki pages.
You can install the application in one of the following ways:
#### Homebrew (macOS | Linux)
``bash`
brew install evg4b/tap/uncors
#### Scoop (Windows)
`bash`
scoop bucket add evg4b https://github.com/evg4b/scoop-bucket.git
scoop install evg4b/uncors
#### NPM (Cross-platform)
`bash`Run as an independent CLI tool
npx -y uncors ...Or add as dependency in your package
npm install uncors --save-devyarn add uncors --dev
pnpm add -D uncors
#### Docker (Cross-platform)
`bash`
docker run -p 80:3000 evg4b/uncors --from 'http://local.github.com' --to 'https://github.com'
#### Stew (Cross-platform)
`bash`
stew install evg4b/uncors
Or find more installation methods in uncors wiki.
The following command can be used to start the UNCORS proxy server:
```
uncors --from 'http://localhost:8080' --to 'https://github.com'
More information about configuration and usage you can find on UNCORS wiki.
> [!Caution]
>
> Please be aware that the modification or replacement of CORS headers may introduce potential security vulnerabilities.
> This tool is specifically engineered to optimize the development and testing workflow and is not intended for use in a
> production environment or as a remote proxy server. It has not undergone a thorough security review; therefore, caution
> should be exercised when utilizing it.

