Skip to content

Commit

Permalink
fix: allow cross-origin popups to access opener's browser context
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran committed Jul 18, 2022
1 parent bc63702 commit 6a1a25c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions benefits/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ 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
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
Expand Down

0 comments on commit 6a1a25c

Please sign in to comment.