Describe the solution
Hi everyone,
When developing frontend applications using Cloudflare pages, we use some of the CF- headers to validate some requests (for example, getting the cf-ipcountry to show the user a recommendation for switching languages).
There are a few more headers that are relevant to our logic, but at the moment we are unable to test these headers and the logic behind them without first deploying to pages, tailing the logs and then making some improvements to the code.
Maybe it's as simple as "copying" the logic from wrangler dev --remote to pages, but I haven't looked at it directly, nor do I know the exact logic behind wrangler.
Thanks in advance and appreciate all the work,
David
Describe the solution
Hi everyone,
When developing frontend applications using Cloudflare pages, we use some of the
CF-headers to validate some requests (for example, getting thecf-ipcountryto show the user a recommendation for switching languages).There are a few more headers that are relevant to our logic, but at the moment we are unable to test these headers and the logic behind them without first deploying to pages, tailing the logs and then making some improvements to the code.
Maybe it's as simple as "copying" the logic from
wrangler dev --remoteto pages, but I haven't looked at it directly, nor do I know the exact logic behind wrangler.Thanks in advance and appreciate all the work,
David