mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
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
This commit is contained in:
@@ -57,6 +57,7 @@ HTTP_REQUEST_META_SAFE_COPY = [
|
|||||||
'HTTP_HOST',
|
'HTTP_HOST',
|
||||||
'HTTP_REFERER',
|
'HTTP_REFERER',
|
||||||
'HTTP_USER_AGENT',
|
'HTTP_USER_AGENT',
|
||||||
|
'HTTP_X_FORWARDED_FOR',
|
||||||
'QUERY_STRING',
|
'QUERY_STRING',
|
||||||
'REMOTE_ADDR',
|
'REMOTE_ADDR',
|
||||||
'REMOTE_HOST',
|
'REMOTE_HOST',
|
||||||
|
|||||||
Reference in New Issue
Block a user