Refactored middleware that supports SESSION_COOKIE_DOMAIN overrides.
This commit is contained in:
committed by
Douglas Hall
parent
41b519fdea
commit
ac390e13f6
@@ -370,8 +370,8 @@ class ViewsQueryCountTestCase(UrlResetMixin, ModuleStoreTestCase, MockRequestSet
|
||||
return inner
|
||||
|
||||
@ddt.data(
|
||||
(ModuleStoreEnum.Type.mongo, 3, 4, 32),
|
||||
(ModuleStoreEnum.Type.split, 3, 13, 32),
|
||||
(ModuleStoreEnum.Type.mongo, 3, 4, 33),
|
||||
(ModuleStoreEnum.Type.split, 3, 13, 33),
|
||||
)
|
||||
@ddt.unpack
|
||||
@count_queries
|
||||
@@ -379,8 +379,8 @@ class ViewsQueryCountTestCase(UrlResetMixin, ModuleStoreTestCase, MockRequestSet
|
||||
self.create_thread_helper(mock_request)
|
||||
|
||||
@ddt.data(
|
||||
(ModuleStoreEnum.Type.mongo, 3, 3, 26),
|
||||
(ModuleStoreEnum.Type.split, 3, 10, 26),
|
||||
(ModuleStoreEnum.Type.mongo, 3, 3, 27),
|
||||
(ModuleStoreEnum.Type.split, 3, 10, 27),
|
||||
)
|
||||
@ddt.unpack
|
||||
@count_queries
|
||||
|
||||
@@ -1174,7 +1174,7 @@ MIDDLEWARE_CLASSES = (
|
||||
'openedx.core.djangoapps.theming.middleware.CurrentSiteThemeMiddleware',
|
||||
|
||||
# This must be last
|
||||
'microsite_configuration.middleware.MicrositeSessionCookieDomainMiddleware',
|
||||
'openedx.core.djangoapps.site_configuration.middleware.SessionCookieDomainOverrideMiddleware',
|
||||
)
|
||||
|
||||
# Clickjacking protection can be enabled by setting this to 'DENY'
|
||||
|
||||
Reference in New Issue
Block a user