Adding cors regex

This commit is contained in:
Rebecca Hsieh 2023-11-07 15:35:45 -08:00
parent 14dc2cce15
commit 8108ba8b8f
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/"]
# Content-Length header is set by django.middleware.common.CommonMiddleware