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 15906ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions benefits/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15906ab

Please sign in to comment.