Explorar el Código

adds additional safe HTTP headers to request #13542

Abhimanyu Saharan hace 2 años
padre
commit
1f1d1ee502
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      netbox/utilities/constants.py

+ 4 - 0
netbox/utilities/constants.py

@@ -45,6 +45,10 @@ HTTP_REQUEST_META_SAFE_COPY = [
     'HTTP_REFERER',
     'HTTP_USER_AGENT',
     'HTTP_X_FORWARDED_FOR',
+    'HTTP_X_FORWARDED_HOST',
+    'HTTP_X_FORWARDED_PORT',
+    'HTTP_X_FORWARDED_PROTO',
+    'HTTP_X_REAL_IP',
     'QUERY_STRING',
     'REMOTE_ADDR',
     'REMOTE_HOST',