mirror of https://github.com/jumpserver/jumpserver
Merge pull request #11343 from jumpserver/pr@dev@allow_hosts_to_all
perf: 修改 allowed hostspull/11346/head
commit
4e2c7d7aab
|
@ -88,11 +88,12 @@ if DEBUG:
|
|||
DEBUG_HOST_PORTS = ['{}:{}'.format(host, port) for host in DEBUG_HOSTS for port in DEBUG_PORT]
|
||||
ALLOWED_DOMAINS.extend(DEBUG_HOST_PORTS)
|
||||
|
||||
ALLOWED_HOSTS = list(set(['.' + host.split(':')[0] for host in ALLOWED_DOMAINS]))
|
||||
print("ALLOWED_HOSTS: ", )
|
||||
for host in ALLOWED_HOSTS:
|
||||
for host in ALLOWED_DOMAINS:
|
||||
print(' - ' + host.lstrip('.'))
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
# https://docs.djangoproject.com/en/4.1/ref/settings/#std-setting-CSRF_TRUSTED_ORIGINS
|
||||
CSRF_TRUSTED_ORIGINS = []
|
||||
for host_port in ALLOWED_DOMAINS:
|
||||
|
|
Loading…
Reference in New Issue