Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zachcheung/corsproxy

Yet Another CORS Proxy Written in Go
https://github.com/zachcheung/corsproxy

cors cors-anywhere cors-proxy

Last synced: 1 day ago
JSON representation

Yet Another CORS Proxy Written in Go

Awesome Lists containing this project

README

        

# corsproxy

`corsproxy` is yet another CORS proxy written in Go, designed to bypass CORS restrictions when making requests from web applications.

## Features

- **Private Network Targets Disallowed**: By default, `corsproxy` disallows private network targets to enhance security.
- **Configurable Allowed Targets**: You can configure the allowed targets to specify which domains are allowed to be accessed through the proxy.

## Installation

* [releases](https://github.com/zachcheung/corsproxy/releases)

* docker

```shell
docker pull ghcr.io/zachcheung/corsproxy
```

* go install

```shell
go install github.com/zachcheung/corsproxy/cmd/corsproxy@latest
```

## Usage

```shell
corsproxy -allowedTargets "https://*.example.com,https://ipinfo.io"
```

Please refer to [rs/cors](https://github.com/rs/cors) for detailed information on CORS-related options.

Request examples:

* `http://localhost:8000/https://ipinfo.io/json`

Live examples:

* https://corsproxy-c6ln.onrender.com/ - render.com free web service tier

## License

[MIT](LICENSE)