codekitchen / dinghy-http-proxy

the http proxy container that dinghy uses
MIT License
125 stars 43 forks source link

add CORS support #29

Closed scotthelm closed 7 years ago

scotthelm commented 7 years ago

Conditionally adds CORS support to a container's nginx config The condition is based on a container's CORS_ENABLED environment variable. The default value is false, meaning that the existing behavior will not change if the environment variable is missing.

e.g.

// docker-compose.yml ... services: web: environment:

would enable CORS for that container's nginx config

codekitchen commented 7 years ago

Great stuff, thanks!

scotthelm commented 7 years ago

thanks very much!

marclennox commented 7 years ago

Just discovered this feature, using it in development to solve a similar problem. Thank you!