Beispiel #1
0
 def middleware(self, *args, **kwargs):
     from django.middleware.security import SecurityMiddleware
     return SecurityMiddleware(self.response(*args, **kwargs))
Beispiel #2
0
 def middleware(self):
     from django.middleware.security import SecurityMiddleware
     return SecurityMiddleware()