further refoctor default render secmiddleware

This commit is contained in:
Usman Nasir
2021-03-07 11:47:54 +05:00
parent ab0b22702d
commit 7e41d50fe6

View File

@@ -110,6 +110,7 @@ class secMiddleware:
response['Content-Security-Policy'] = "connect-src *;" 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'] = "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['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['Content-Security-Policy'] = "default-src 'self' cyberpanel.cloud *.cyberpanel.cloud"
response['X-Content-Type-Options'] = "nosniff" response['X-Content-Type-Options'] = "nosniff"
response['Referrer-Policy'] = "same-origin" response['Referrer-Policy'] = "same-origin"