diff --git a/lms/envs/common.py b/lms/envs/common.py index 652fd0f02e..fa6b24f516 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -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',