Просмотр исходного кода

Add missing HTTP_X_FORWARDED_FOR

See discussion [here](https://github.com/netbox-community/netbox/discussions/7876) for background.

From the [doc](https://netbox.readthedocs.io/en/stable/customization/custom-scripts/) i should be able to access `META.HTTP_X_FORWARDED_FOR` but i was not able to since they were not being sent downstream
Dave 4 лет назад
Родитель
Сommit
038d7e0fa6
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      netbox/utilities/constants.py

+ 1 - 0
netbox/utilities/constants.py

@@ -57,6 +57,7 @@ HTTP_REQUEST_META_SAFE_COPY = [
     'HTTP_HOST',
     'HTTP_REFERER',
     'HTTP_USER_AGENT',
+    'HTTP_X_FORWARDED_FOR',
     'QUERY_STRING',
     'REMOTE_ADDR',
     'REMOTE_HOST',