CORS Anywhere is a NodeJS reverse proxy which adds CORS headers to the proxied request. Resources
405
The docker image for cors-anywhere.
docker run --rm dhso/cors-anywhere:latest
| Env | Default | Description |
|---|---|---|
| PORT | 8080 | Server listening port |
| KEY | Content or filename of TLS Key | |
| CERT | Content or filename of TLS Certificate | |
| CORSANYWHERE_BLACKLIST | If set, requests whose origin is listed are blocked. Comma separated. Example: https://abuse.example.com,http://abuse.example.com | |
| CORSANYWHERE_WHITELIST | If set, requests whose origin is not listed are blocked. If this list is empty, all origins are allowed. Comma separated. Example: https://good.example.com,http://good.example.com | |
| CORSANYWHERE_RATELIMIT | Format: <max requests per period> <period in minutes> <non-ratelimited hosts>For example, to blacklist abuse.example.com and rate-limit everything to 50 requests per 3 minutes, except for my.example.com and my2.example.com (which may be unlimited), use: 50 3 my.example.com my2.example.com | |
| CORSANYWHERE_REQUIREHEADER | If set, the request must include this header or the API will refuse to proxy. Recommended if you want to prevent users from using the proxy for normal browsing. |
This repository is licensed under MIT.
Content type
Image
Digest
sha256:e73bca900…
Size
41.1 MB
Last updated
over 3 years ago
docker pull dhso/cors-anywhere