mendhak / docker-http-https-echo

Docker image that echoes request data as JSON; listens on HTTP/S, useful for debugging.
https://code.mendhak.com/docker-http-https-echo/
MIT License
621 stars 136 forks source link

Implementing configurable CORS settings #65

Closed ash0ne closed 5 months ago

ash0ne commented 5 months ago

Was using docker-http-https-echo to test a frontend app and thought it'd be useful to have a way to specify the CORS policy through config like so.

docker run -d -e CORS_ALLOW_ORIGIN="http://localhost.4000" -e CORS_ALLOW_HEADERS="x-custom-test-header"

Changes

mendhak commented 5 months ago

Nice one, thanks. I'll release it in due CORS :laughing:

mendhak commented 5 months ago

:33 is released in Docker Hub and Github Registry.