mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 18:21:03 -03:30
Merge pull request #2665 from mabashian/socket-whitelist
Adds websocket origin whitelist to development.py
This commit is contained in:
@@ -158,3 +158,5 @@ try:
|
|||||||
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.internal'
|
os.environ['SDB_NOTIFY_HOST'] = 'docker.for.mac.internal'
|
||||||
except Exception:
|
except Exception:
|
||||||
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
|
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
|
||||||
|
|
||||||
|
WEBSOCKET_ORIGIN_WHITELIST = ['https://localhost:8043', 'https://localhost:3000']
|
||||||
|
|||||||
Reference in New Issue
Block a user