From 038d7e0fa670405eb2c6b4c135a1453e7c994445 Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 19 Nov 2021 15:20:00 -0500 Subject: [PATCH] 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 --- netbox/utilities/constants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netbox/utilities/constants.py b/netbox/utilities/constants.py index c3fbd0687..08e9dd9cf 100644 --- a/netbox/utilities/constants.py +++ b/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',