diff --git a/aws/backend.json b/aws/backend.json index 48a28f3fbd..adfeeb3d11 100644 --- a/aws/backend.json +++ b/aws/backend.json @@ -37,6 +37,10 @@ "name": "CORS_ALLOWED_ORIGINS", "value": "[\"https://care.coronasafe.in\", \"https://careapi.coronasafe.in\", \"https://care.ohc.network\", \"https://careapi.ohc.network\", \"https://status.10bedicu.org\", \"http://localhost:4000\"]" }, + { + "name": "CORS_ALLOWED_ORIGIN_REGEXES", + "value": "[\"^https://[a-zA-Z0-9-]+--care-egov-staging\\.netlify\\.app$\"]" + }, { "name": "CURRENT_DOMAIN", "value": "https://care.ohc.network" diff --git a/config/settings/deployment.py b/config/settings/deployment.py index d6cb1a3b94..4d22554be7 100644 --- a/config/settings/deployment.py +++ b/config/settings/deployment.py @@ -41,6 +41,7 @@ ) # https://github.com/adamchainz/django-cors-headers#cors_allowed_origins-sequencestr CORS_ALLOWED_ORIGINS = env.json("CORS_ALLOWED_ORIGINS", default=[]) +CORS_ALLOWED_ORIGIN_REGEXES = env.json("CORS_ALLOWED_ORIGIN_REGEXES", default=[]) # TEMPLATES # ------------------------------------------------------------------------------