From e0c99d87bd95fa148e50e57a7d675b5e3fa7a70c Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Fri, 23 Sep 2022 06:59:26 +0000 Subject: [PATCH] update template --- ansible/roles/trmm_dev/templates/local_settings.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/roles/trmm_dev/templates/local_settings.j2 b/ansible/roles/trmm_dev/templates/local_settings.j2 index 82c23283..3b9601a6 100644 --- a/ansible/roles/trmm_dev/templates/local_settings.j2 +++ b/ansible/roles/trmm_dev/templates/local_settings.j2 @@ -2,6 +2,10 @@ SECRET_KEY = "{{ django_secret }}" DEBUG = True ALLOWED_HOSTS = ['{{ api }}'] ADMIN_URL = "admin/" +CORS_ORIGIN_WHITELIST = [ + "http://{{ rmm }}:8080", + "https://{{ rmm }}:8080", +] CORS_ORIGIN_ALLOW_ALL = True DATABASES = { 'default': {