Missing HTTP headers

We are currently facing an issue where all HTTP headers, including CF-Connecting-IP, X-Forwarded-For, and CF-IPCountry, are missing from some http requests routed through Cloudflare. While the majority of traffic includes these headers as expected, a significant number of requests are missing them. Please assist in reporting this to the Cloudflare team.
17 Replies
Chaika
Chaika3w ago
I'd make sure all the traffic is from Cloudflare's actual proxy. Cloudflare's ASN is also used for WARP/their VPN, only the ranges on https://www.cloudflare.com/ips/ are used by proxy, and I'd make sure your origin properly only allows those IPs
0xHM!
0xHM!OP3w ago
The traffic is from Cloudflare. My website is restricted to only be accessed from IPs listed on Cloudflare website.
Chaika
Chaika3w ago
got any examples of an incoming request like that then? Looking for request headers (censor any ones containing sensitive data of course) + Cf IP
0xHM!
0xHM!OP3w ago
I have many examples with Ray IDs to be investigated by Cloudflare. I also checked IIS logs to ensure that the headers are missing from the source and not due to an application issue. @Chaika I am using free plan, so please advise how to share the Ray IDs with Cloudflare team? The issue is still persists and affecting my services.
Chaika
Chaika3w ago
RAY IDs aren't helpful as far as I am aware, Cloudflare samples super high/doesn't store each request for obvious space reasons. If this is something that multiple users were reporting and/or if it was reproducible, champs/we can escalate stuff, but would need more info. You mention you have Ray IDs, so I assume the cf-ray request header was present?
0xHM!
0xHM!OP3w ago
Yes, cf-ray is the only header that is included in http traffic. What info is needed to escalate? It’s highly urgent.
Chaika
Chaika3w ago
It'd help to have more information like what I asked above, request headers and requesting ip (cf's ip)
Yes, cf-ray is the only header that is included in http traffic.
So it's worth noting just having the CF-Ray header is a configuration you could have caused yourself. In Transform Rules -> Managed Transforms, if you had enabled Remove Visitors IPs and not have Add Visitor Locations on, and you'd have just the cf-ray header and not much else. It's also possible that you would have Modify Request Header Transform Rules stripping these headers off on a more exact match of traffic. If this is just effecting a specific zone/domain it's possible those settings got changed. https://dash.cloudflare.com/?to=/:account/:zone/rules/transform-rules/managed-transforms
0xHM!
0xHM!OP3w ago
The transform rules will affect all http traffic, while the issue I am facing is that some of the traffic is missing CF headers while the majority traffic include all usual headers.
Chaika
Chaika3w ago
Managed Transforms yes all traffic for that specific zone. Request Header Transform Rules can be much more granular/specific hostnames/pahs/etc
0xHM!
0xHM!OP3w ago
The issue started 10 hours ago while the last configuration update was a year ago. The traffic for the same hostname/path is received with/without the headers. I already checked all possible causes and nothing related to the configuration. Here are some of the IPs: 162.158.86.109 162.158.6.156 162.158.80.155 162.158.80.160 162.158.80.164 162.158.80.165 I also receive traffic from these IPs with the full needed headers such as X-Forwarded-For Attached are screenshots of a Wireshark capture showing the received traffic from the Cloudflare IP (162.158.6.156). As you can see, some traffic includes the headers (X-Forwarded-For, X-Forwarded-Proto, CF-Connecting-IP, CF-IPCountry), while other traffic is missing the required headers. I believe this provides comprehensive details about the issue.
0xHM!
0xHM!OP3w ago
No description
No description
0xHM!
0xHM!OP3w ago
Please help escalating this issue urgently
Walshy
Walshy3w ago
Hey, could you please send me a repro url? (DM is fine)
0xHM!
0xHM!OP3w ago
@Walshy | Workers/Pages I sent you a message
Walshy
Walshy3w ago
Thanks but I still need at least one url so i can look at it also is it still happening? We rolled back something new we were rolling out
0xHM!
0xHM!OP3w ago
@Walshy | Workers/Pages The last noticed one was 30 minutes ago. I will send url in DM.
Walshy
Walshy3w ago
Yep looks like it was related to the new software we rolled out I've let the team know.

Did you find this page helpful?