gui.ohm
gui.ohm
CDCloudflare Developers
Created by manishrc on 11/24/2023 in #next-on-pages
Access to CF on Pages using Next.js
For the redundant fields do we favor cf- or x-vercel . For instance cf-ipcountry and x-vercel-ip-country are the same. Is this documented?
8 replies
CDCloudflare Developers
Created by manishrc on 11/24/2023 in #next-on-pages
Access to CF on Pages using Next.js
I was poking around the request object and found those headers are passed through. Some of these can act as a subset of the cf object. Are these reliable / future proof ? @Better James
['accept', 'accept-encoding', 'accept-language', 'cf-connecting-ip', 'cf-ipcountry', 'cf-ray', 'cf-visitor', 'connection', 'host', 'origin', 'referer', 'sec-ch-ua', 'sec-ch-ua-mobile', 'sec-ch-ua-platform', 'sec-fetch-dest', 'sec-fetch-mode', 'sec-fetch-site', 'user-agent', 'x-forwarded-proto', 'x-real-ip', 'x-vercel-ip-city', 'x-vercel-ip-country', 'x-vercel-ip-country-region', 'x-vercel-ip-latitude', 'x-vercel-ip-longitude', 'x-vercel-sc-host']
['accept', 'accept-encoding', 'accept-language', 'cf-connecting-ip', 'cf-ipcountry', 'cf-ray', 'cf-visitor', 'connection', 'host', 'origin', 'referer', 'sec-ch-ua', 'sec-ch-ua-mobile', 'sec-ch-ua-platform', 'sec-fetch-dest', 'sec-fetch-mode', 'sec-fetch-site', 'user-agent', 'x-forwarded-proto', 'x-real-ip', 'x-vercel-ip-city', 'x-vercel-ip-country', 'x-vercel-ip-country-region', 'x-vercel-ip-latitude', 'x-vercel-ip-longitude', 'x-vercel-sc-host']
8 replies