Skip to content

Commit

Permalink
- add internal apps to allowed hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
elipe17 committed Sep 23, 2024
1 parent cc73759 commit 9e00a31
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tdrs-backend/tdpservice/settings/cloudgov.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ class Development(CloudGov):
"""Settings for applications deployed in the Cloud.gov dev space."""

# https://docs.djangoproject.com/en/2.0/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ['.app.cloud.gov']
ALLOWED_HOSTS = ['.app.cloud.gov',
'.apps.internal']
CORS_ORIGIN_ALLOW_ALL = False
CORS_ALLOWED_ORIGINS = ['https://*.app.cloud.gov']
CORS_ALLOW_CREDENTIALS = True
Expand All @@ -169,7 +170,8 @@ class Staging(CloudGov):

ALLOWED_HOSTS = [
'tdp-frontend-staging.acf.hhs.gov',
'tdp-frontend-develop.acf.hhs.gov'
'tdp-frontend-develop.acf.hhs.gov',
'.apps.internal'
]
CORS_ALLOWED_ORIGINS = ['https://*.acf.hhs.gov']
CORS_ORIGIN_ALLOW_ALL = False
Expand All @@ -188,7 +190,9 @@ class Production(CloudGov):
"""Settings for applications deployed in the Cloud.gov production space."""

# TODO: Add production ACF domain when known
ALLOWED_HOSTS = ['tanfdata.acf.hhs.gov', 'tdp-frontend-prod.app.cloud.gov']
ALLOWED_HOSTS = ['tanfdata.acf.hhs.gov',
'tdp-frontend-prod.app.cloud.gov',
'.apps.internal']

LOGIN_GOV_CLIENT_ID = os.getenv(
'OIDC_RP_CLIENT_ID',
Expand Down

0 comments on commit 9e00a31

Please sign in to comment.