gookie
05/16/2023, 11:02 AMcf-connecting-ip
header.
I enabled Remove visitor IP headers
in the transform rules but the REST API servers still got the cf-connecting-ip
header in the request.
Then I made a new modify request header rule like attached images shows but the REST API servers still got the cf-connecting-ip
header.
What am I doing wrong?
https://cdn.discordapp.com/attachments/1107986464396025926/1107986464530239559/image.png▾
gookie
05/17/2023, 2:07 PMgookie
05/22/2023, 9:41 AMalbert
05/23/2023, 4:29 PMX-Real-IP
header from the incoming request, the Workers subrequest won't have the user's IP in CF-Connecting-IP
.
js
const requestHeaders = new Headers(request.headers)
requestHeaders.delete('X-Real-IP')
return fetch(request, {
headers: requestHeaders
})
gookie
05/23/2023, 4:30 PMgookie
05/23/2023, 4:30 PMalbert
05/23/2023, 4:30 PMgookie
05/23/2023, 4:30 PMgookie
05/23/2023, 4:31 PMgookie
05/23/2023, 4:31 PMgookie
05/23/2023, 4:31 PMErisa | Support Engineer
05/23/2023, 4:33 PMgookie
05/23/2023, 4:33 PMgookie
05/23/2023, 4:34 PMErisa | Support Engineer
05/23/2023, 4:34 PMgookie
05/23/2023, 4:35 PMgookie
05/23/2023, 4:38 PMgookie
05/23/2023, 4:39 PMhttps://cdn.discordapp.com/attachments/1107986464396025926/1110607951598735510/image.png▾
gookie
05/23/2023, 4:39 PMgookie
05/23/2023, 4:40 PMgookie
05/23/2023, 4:40 PMgookie
05/23/2023, 4:41 PMgookie
05/23/2023, 6:07 PMgookie
05/23/2023, 8:26 PMgookie
05/23/2023, 8:26 PMgookie
05/23/2023, 8:27 PM