Skip to content

Commit

Permalink
Fix: enrollment overlay in Django 4.0.x (#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran authored Jul 18, 2022
2 parents c9615f6 + 9ed26ad commit 3733404
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Authlib==1.0.1
Django==3.2.14
Django==4.0.6
django-csp==3.7
git+https://github.com/cal-itp/eligibility-api#egg=eligibility_api
gunicorn==20.1.0
Expand Down

0 comments on commit 3733404

Please sign in to comment.