When you tested your domain, what were the results?
The subrequests to my data source fail with a 403 error Forbidden.
Describe the issue you are having:
The request to my backend works.
However, the subrequests that my backend makes to the source fail with a Forbidden 403 error, with a response.json() not valid JSON.
The webpage doesn’t have rendering issues, only the subrequest fails.
The subrequests work from localhost to the HTTP source, but fetch fails with a “fetch failed” response message to the HTTPS self-signed certificate source.
The application runs on NextJs 14, on the edge, with use of the NextJs Fetch API. Can’t define an Agent with a rejectUnauthorized:false (or didn’t find how).
What error message or number are you receiving?
403, Forbidden
What steps have you taken to resolve the issue?
make a WAP rule to accept request from the source IP address
use a another browser/private window.
Disable the Browser Integrity Check
Was the site working with SSL prior to adding it to Cloudflare?
My website is simply served through Cloudflare, and deployed on Cloudflare Pages
What are the steps to reproduce the error:
deploy a NextJs application to Cloudflare Pages
create a site on Cloudflare
in the application, make requests to backend that make subrequests to the same source.
Have you tried from another browser and/or incognito mode?
Yes
Please attach a screenshot of the error:
There is no error. The subrequests return a 403 error Forbidden. The same credentials for the subrequest work from localhost, fail only in Cloudflare.