1👍
✅
Setting default to False should do it.
You can also remove the middleware in the middleware section.
MIDDLEWARE_CLASSES = (
# Make sure djangosecure.middleware.SecurityMiddleware is listed first
'djangosecure.middleware.SecurityMiddleware',
) + MIDDLEWARE_CLASSES
👤jxu
Source:stackexchange.com