Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evg4b/uncors

A simple dev HTTP/HTTPS reverse proxy for replacing CORS headers.
https://github.com/evg4b/uncors

cors cors-headers cors-proxy developer-tools devtools frontend frontend-tool frontendtools http https mock-server proxy

Last synced: 7 days ago
JSON representation

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

Awesome Lists containing this project

README

        



UNCORS logo



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




Go version


GitHub Release


License




NPM Downloads


Docker Pulls


GitHub Downloads (all assets, all releases)




Coverage


Go Report Card


Reliability Rating


Security Rating


Lines of Code

# Core features

- CORS header replacement
- [Wildcard host mapping](https://github.com/evg4b/uncors/wiki/2.-Configuration#wilcard-mapping)
- [HTTPS support](https://github.com/evg4b/uncors/wiki/2.-Configuration#https-configuration)
- [Response mocking](https://github.com/evg4b/uncors/wiki/3.-Response-mocksing)
- [HTTP/HTTPS proxy support](https://github.com/evg4b/uncors/wiki/2.-Configuration#proxy-configuration)
- [Static file serving](https://github.com/evg4b/uncors/wiki/4.-Static-file-serving)
- [Response caching](https://github.com/evg4b/uncors/wiki/5.-Response-caching)

Other new features you can find in [roadmap](https://github.com/evg4b/uncors/blob/main/ROADMAP.md).

Full documentation you can found on [wiki pages](https://github.com/evg4b/uncors/wiki).

# Quick Install

You can install the application in one of the following ways:

#### [Homebrew](https://brew.sh/) (macOS | Linux)

```bash
brew install evg4b/tap/uncors
```

#### [Scoop](https://scoop.sh/) (Windows)

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

#### [NPM](https://npmjs.com) (Cross-platform)

```bash
npm install uncors --save-dev
# OR
yarn add uncors --dev
# OR
pnpm add -D uncors
```

#### [Docker](https://www.docker.com/) (Cross-platform)

```bash
docker run -p 80:3000 evg4b/uncors --from 'http://local.github.com' --to 'https://github.com'
```

#### [Stew](https://github.com/marwanhawari/stew) (Cross-platform)

```bash
stew install evg4b/uncors
```

Or find more installation methods in [uncors wiki](https://github.com/evg4b/uncors/wiki/1.-Installation).

# Usage

The following command can be used to start the UNCORS proxy server:

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

More information about configuration and usage you can find on [UNCORS wiki](https://github.com/evg4b/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.

# Stargazers over time

[![Stargazers over time](https://starchart.cc/evg4b/uncors.svg?variant=adaptive&line=%232f81f7)](https://starchart.cc/evg4b/uncors)

# Support the project

[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/X8X0SWTP3)