Whitelist host.docker.internal along with localhost and localstack (#4522)

This commit is contained in:
eric schkufza 2021-11-02 15:00:15 -07:00 committed by GitHub
parent 7764a94491
commit 4d1eb2c8db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,6 +196,7 @@ class ResponseObject(_TemplateEnvironmentMixin, ActionAuthenticatorMixin):
not host
or host.startswith("localhost")
or host.startswith("localstack")
or host.startswith("host.docker.internal")
or re.match(r"^[^.]+$", host)
or re.match(r"^.*\.svc\.cluster\.local:?\d*$", host)
):