Closed ash0ne closed 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-http-https-echo
docker run -d -e CORS_ALLOW_ORIGIN="http://localhost.4000" -e CORS_ALLOW_HEADERS="x-custom-test-header"
index.js
README
tests.sh
Nice one, thanks. I'll release it in due CORS :laughing:
:33 is released in Docker Hub and Github Registry.
:33
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.Changes
index.js
to implement configurable CORS settings for HTTP echo serverREADME
to document the env vars that needed to be updated for setting the CORS policytests.sh