Fetch api not working in pages

hello there, i deployed my page on cloudflare pages but here the issue fetch data from api is not working also one more thing the api is using subdomain and the domain is on cloudflare so what wil be the solution for this?
4 Replies
Chaika
Chaika11mo ago
More information would be helpful (i.e the exact error, and a url that reproduces it), that sounds just ilke a generic CORS issue though. Only one post per issue as well, don't create mutiple in different forums
James singh
James singh11mo ago
no issue i am using nextjs and ther a function called rewrite which help to make http to https and i use it work render api in front end when i try to fetch data from api it not working and api json page also not coming and no issue in code cuz work in my local server and other providers
Chaika
Chaika11mo ago
The exact error and the url with the page having that error would be more helpful
James singh
James singh11mo ago
i check inspect logs no error
Want results from more Discord servers?
Add your server
More Posts
cloud flare pages related issuehello there, i deployed my page on cloudflare pages but here the issue fetch data from api is not woCloudflare warp showing `on` instead of `plus`?Hey there, i have recently installed cloudflare warp on both my phone and laptop it worked fine i usHow to deliver "mov" format to an HTML 5 video player in HTML via StreamingHello folks, I am currently building a website where I use the direct download for videos to a HTMLCloudflare Zero-Trust Access on subdomain with port.Hello, I added Access to my subdomain `<subdomain>.<domain>.pt`, when I access it, it shows the autrequest.json() timing outI just started with cloudflare workers, initialised a new worker using `npm create cloudflare@latestHow to set routes for specific workers?I have setup my custom domain example.com and now I want to link the route "example.com/worker" to oHow do I set the path to an image from a CF function?I have a vue/nuxt project with files like this? assets -img --logo.svg functions -cf --contact.js [solved] Rules | Redirect Rules is bugged, still working after removed my redirect rule??Hello anyone know, why rules, exactly the **redirect rules**, is bugged? I had a rule enabled, but wCan't link a Github accountI am trying to link a Github account in the "Pages" section, but after successful installation and gCannot connect pages with github. I can grant access, but nothing shows up in cloudflare to afterI've tried everything, can you please help? This needs someone to reset it on the backend. When I fi