Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare fallback headers and updates eslint and prettier configs #53

Merged
merged 2 commits into from
Jun 1, 2022

Conversation

pbojinov
Copy link
Owner

@pbojinov pbojinov commented Jun 1, 2022

Fixes #46

@pbojinov pbojinov changed the title Cloudflare extra headers Cloudflare fallback headers and updates eslint and prettier configs Jun 1, 2022
@pbojinov pbojinov merged commit 1edd068 into master Jun 1, 2022
@pbojinov pbojinov deleted the cloudflare-extra-headers branch June 1, 2022 06:32
@Kikobeats
Copy link

Kikobeats commented Jun 1, 2022

@pbojinov According to CloudFlare docs, there is another header worth it to be supported:

The three options available for configuring Pseudo IPv4 are:

  • Off: This is the default value.
  • Add Header: Cloudflare automatically adds the Cf-Pseudo-IPv4 header with a Class E IPv4 address hashed from the original IPv6 address.
  • Overwrite Headers - Cloudflare overwrites the existing Cf-Connecting-IP and X-Forwarded-For headers with a pseudo IPv4 address while preserving the real IPv6 address in a Cf-Connecting-IPv6 header.

so if you add support Cf-Connecting-IPv6 as well, that will cover all the possibilities 🙂

@pbojinov
Copy link
Owner Author

pbojinov commented Jun 1, 2022

@Kikobeats thanks for pointing that out. I’ll add that as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Cloudflare's "Cf-Pseudo-IPv4" header (as a last resort)
2 participants