Skip to content

Commit

Permalink
Remove x-forwarded from ipHeaderList (#4882)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-id authored Nov 14, 2024
1 parent 83e11a3 commit 9146f26
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions packages/dd-trace/src/appsec/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const contentHeaderList = [

const EVENT_HEADERS_MAP = mapHeaderAndTags([
...ipHeaderList,
'x-forwarded',
'forwarded',
'via',
...contentHeaderList,
Expand Down
1 change: 0 additions & 1 deletion packages/dd-trace/src/plugins/util/ip_extractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const ipHeaderList = [
'x-real-ip',
'true-client-ip',
'x-client-ip',
'x-forwarded',
'forwarded-for',
'x-cluster-client-ip',
'fastly-client-ip',
Expand Down
1 change: 0 additions & 1 deletion packages/dd-trace/test/plugins/util/ip_extractor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ describe('ip extractor', () => {
'x-real-ip',
'true-client-ip',
'x-client-ip',
'x-forwarded',
'forwarded-for',
'x-cluster-client-ip',
'fastly-client-ip',
Expand Down

0 comments on commit 9146f26

Please sign in to comment.