diff --git a/benefits/settings.py b/benefits/settings.py index daa49734c..71bde513c 100644 --- a/benefits/settings.py +++ b/benefits/settings.py @@ -114,6 +114,10 @@ def _filter_empty(ls): SECURE_BROWSER_XSS_FILTER = True +# required so that cross-origin pop-ups (like the enrollment overlay) have access to parent window context +# https://github.com/cal-itp/benefits/pull/793 +SECURE_CROSS_ORIGIN_OPENER_POLICY = "same-origin-allow-popups" + # the NGINX reverse proxy sits in front of the application in deployed environments # SSL terminates before getting to Django, and NGINX adds this header to indicate # if the original request was secure or not