Skip to content

Commit 038d7e0

Browse files
authored
Add missing HTTP_X_FORWARDED_FOR
See discussion [here](#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
1 parent e8d6281 commit 038d7e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

netbox/utilities/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
'HTTP_HOST',
5858
'HTTP_REFERER',
5959
'HTTP_USER_AGENT',
60+
'HTTP_X_FORWARDED_FOR',
6061
'QUERY_STRING',
6162
'REMOTE_ADDR',
6263
'REMOTE_HOST',

0 commit comments

Comments
 (0)