Skip to content

Commit 3733404

Browse files
authored
Fix: enrollment overlay in Django 4.0.x (#793)
2 parents c9615f6 + 9ed26ad commit 3733404

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

benefits/settings.py

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ def _filter_empty(ls):
114114

115115
SECURE_BROWSER_XSS_FILTER = True
116116

117+
# required so that cross-origin pop-ups (like the enrollment overlay) have access to parent window context
118+
# https://github.com/cal-itp/benefits/pull/793
119+
SECURE_CROSS_ORIGIN_OPENER_POLICY = "same-origin-allow-popups"
120+
117121
# the NGINX reverse proxy sits in front of the application in deployed environments
118122
# SSL terminates before getting to Django, and NGINX adds this header to indicate
119123
# if the original request was secure or not

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Authlib==1.0.1
2-
Django==3.2.14
2+
Django==4.0.6
33
django-csp==3.7
44
git+https://github.com/cal-itp/eligibility-api#egg=eligibility_api
55
gunicorn==20.1.0

0 commit comments

Comments
 (0)