Explorar el Código

Set X_FRAME_OPTIONS to SAMEORIGIN (changed in Django 3.0)

Jeremy Stretch hace 5 años
padre
commit
884d648cc2
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      netbox/netbox/settings.py

+ 1 - 0
netbox/netbox/settings.py

@@ -345,6 +345,7 @@ USE_TZ = True
 WSGI_APPLICATION = 'netbox.wsgi.application'
 SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
 USE_X_FORWARDED_HOST = True
+X_FRAME_OPTIONS = 'SAMEORIGIN'
 
 # Static files (CSS, JavaScript, Images)
 STATIC_ROOT = BASE_DIR + '/static'