---
title: "Discussion on \"Fix \"X-Forwarded-For\" header validation error on implementing API rate limiting\" | Hashnode"
description: "Discussion on \"Fix \"X-Forwarded-For\" header validation error on implementing API rate limiting\". This error is logged when the X-Forwarded-For header is set (indicating use of a proxy), but the trust proxy setting is false"
url: "https://hashnode.com/posts/fix-x-forwarded-for-header-validation-error-on-implementing-api-rate-limiting/65a807adb576463c5497c38a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fix "X-Forwarded-For" header validation error on implementing API rate limiting](https://starlingroot.hashnode.dev/fix-x-forwarded-for-header-validation-error-on-implementing-api-rate-limiting?utm_source=hashnode&utm_medium=feed)

This error is logged when the X-Forwarded-For header is set (indicating use of a proxy), but the trust proxy setting is false

Jan 17, 2024 · 2 min read · starlingroot.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#ratelimit](https://hashnode.com/tag/ratelimit)
-   [#proxy](https://hashnode.com/tag/proxy)
-   [#networking](https://hashnode.com/tag/networking)
-   [#backend](https://hashnode.com/tag/backend)

## Written by

[Chidera Anichebe](https://hashnode.com/@starlingroot)

@starlingroot

  
[View profile](https://hashnode.com/@starlingroot)

Network Security | Software Engineering | Currency Speculation

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
