Whitelist host.docker.internal along with localhost and localstack (#4522)
This commit is contained in:
parent
7764a94491
commit
4d1eb2c8db
@ -196,6 +196,7 @@ class ResponseObject(_TemplateEnvironmentMixin, ActionAuthenticatorMixin):
|
|||||||
not host
|
not host
|
||||||
or host.startswith("localhost")
|
or host.startswith("localhost")
|
||||||
or host.startswith("localstack")
|
or host.startswith("localstack")
|
||||||
|
or host.startswith("host.docker.internal")
|
||||||
or re.match(r"^[^.]+$", host)
|
or re.match(r"^[^.]+$", host)
|
||||||
or re.match(r"^.*\.svc\.cluster\.local:?\d*$", host)
|
or re.match(r"^.*\.svc\.cluster\.local:?\d*$", host)
|
||||||
):
|
):
|
||||||
|
Loading…
Reference in New Issue
Block a user