HUB
Sign inSign up

dhso/cors-anywhere

By dhso

•Updated over 3 years ago

CORS Anywhere is a NodeJS reverse proxy which adds CORS headers to the proxied request. Resources

Image
0

405

dhso/cors-anywhere repository overview

⁠dhso/cors-anywhere

docker build automated

The docker image for cors-anywhere⁠.

⁠Run
docker run --rm dhso/cors-anywhere:latest
⁠Envirionment Variables
EnvDefaultDescription
PORT8080Server listening port
KEYContent or filename of TLS Key
CERTContent or filename of TLS Certificate
CORSANYWHERE_BLACKLISTIf set, requests whose origin is listed are blocked.
Comma separated. Example: https://abuse.example.com,http://abuse.example.com
CORSANYWHERE_WHITELISTIf 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_RATELIMITFormat: <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_REQUIREHEADERIf 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.

⁠LICENSE

This repository is licensed under MIT⁠.

Tag summary

Content type

Image

Digest

sha256:e73bca900…

Size

41.1 MB

Last updated

over 3 years ago

docker pull dhso/cors-anywhere