Re-add XForwardedForMiddleware

This commit is contained in:
Jillian Vogel
2020-04-15 11:18:57 +09:30
parent 285bbe849b
commit ec69eec529

View File

@@ -1474,6 +1474,8 @@ CREDIT_NOTIFICATION_CACHE_TIMEOUT = 5 * 60 * 60
################################# Middleware ###################################
MIDDLEWARE = [
'openedx.core.lib.x_forwarded_for.middleware.XForwardedForMiddleware',
# Avoid issue with https://blog.heroku.com/chrome-changes-samesite-cookie
# Override was found here https://github.com/django/django/pull/11894
'django_cookies_samesite.middleware.CookiesSameSite',