Fix regex

This commit is contained in:
Rebecca Hsieh 2023-11-07 15:47:40 -08:00
parent 8108ba8b8f
commit b67bdc85ca
No known key found for this signature in database
GPG key ID: 644527A2F375A379

View file

@ -300,7 +300,7 @@ CSP_FORM_ACTION = allowed_sources
# Sets clients that allow access control to manage.get.gov
# TODO: remove :8080 to see if we can have all localhost access
CORS_ALLOWED_ORIGINS = ["http://localhost:8080", "https://beta.get.gov"]
CORS_ALLOWED_ORIGIN_REGEXES = [r"https://\w+\.sites\.pages\.cloud\.gov/"]
CORS_ALLOWED_ORIGIN_REGEXES = [r"https:\/\/[\w-]+\.sites\.pages\.cloud\.gov"]
# Content-Length header is set by django.middleware.common.CommonMiddleware