Tonny
Tonny
CDCloudflare Developers
Created by Tonny on 5/27/2024 in #general-help
Is it possible to point /path to another DNS record/server?
Hey all good morning, I was just wondering if it's possible to point the root path to CF pages BUT point /api to another server (kind of what you can do on AWS); is it possible?
2 replies
CDCloudflare Developers
Created by Tonny on 5/3/2024 in #pages-help
No details on failed deployment
No description
15 replies
CDCloudflare Developers
Created by Tonny on 4/28/2024 in #pages-help
Is it possible to access requests headers in Pages' functions?
I was trying to access context.request.headers but it's always empty... I'm performing API requests via postman sending custom headers but so far nothing shows up in the response. Here's my code:
export const onRequestPost: PagesFunction<Env> = async (context) => {
return Response.json(context.request.headers);
export const onRequestPost: PagesFunction<Env> = async (context) => {
return Response.json(context.request.headers);
In additon is it possible to get the CF's headers for country and IP in these functions? I know on CF DNS management they do set some CF headers that are attached to the request so you can retrieve the IP and country from these for each visit, I would like to see if I can do the same in CF page functions.
4 replies
CDCloudflare Developers
Created by Tonny on 4/25/2024 in #pages-help
Unable to retrieve KV variables
No description
2 replies
CDCloudflare Developers
Created by Tonny on 4/25/2024 in #pages-help
Annoying red message on cloudflare pace
No description
8 replies