mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
magento installer
This commit is contained in:
@@ -96,9 +96,14 @@ class secMiddleware:
|
||||
|
||||
response = self.get_response(request)
|
||||
|
||||
#response['Strict-Transport-Security'] = "max-age=31536000; includeSubDomains; preload"
|
||||
response['X-XSS-Protection'] = "1; mode=block"
|
||||
#response['Strict-Transport-Security'] = "max-age=31536000; includeSubDomains; preload"
|
||||
response['X-Frame-Options'] = "sameorigin"
|
||||
response['Content-Security-Policy'] = "frame-ancestors jsdelivr.com"
|
||||
response['Content-Security-Policy'] = "script-src 'self' https://www.jsdelivr.com"
|
||||
response['Content-Security-Policy'] = "connect-src *;"
|
||||
response['Content-Security-Policy'] = "font-src 'self' 'unsafe-inline' https://www.jsdelivr.com https://fonts.googleapis.com"
|
||||
response['Content-Security-Policy'] = "style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://www.jsdelivr.com https://cdnjs.cloudflare.com https://maxcdn.bootstrapcdn.com https://cdn.jsdelivr.net"
|
||||
response['X-Content-Type-Options'] = "nosniff"
|
||||
response['Referrer-Policy'] = "same-origin"
|
||||
|
||||
return response
|
||||
return response
|
||||
Reference in New Issue
Block a user