SteveOne
CDCloudflare Developers
•Created by SteveOne on 4/11/2024 in #general-help
Cloudflare Access Issue with custom domain
I'm encountering an issue with Cloudflare Access on my Cloudflare Pages build with a custom domain. Here's the situation:
I have a Cloudflare Pages build with a custom domain.
Both the custom domain and pages_dev sites are protected via Cloudflare Access.
In the page, I'm using the header "cf-access-authenticated-user-email" for user detection.
The problem is, everything works fine on the pages_dev sites; the header is present. However, on the custom domain, the "cf-access-authenticated-user-email" header is missing.
Has anyone else experienced this or have any ideas on how to resolve it? Any help would be greatly appreciated!
Thanks in advance! 🙏
2 replies
CDCloudflare Developers
•Created by SteveOne on 3/25/2024 in #general-help
Query Regarding Cloudflare Health Check API
I'm seeking assistance regarding the Cloudflare Health Check API. Specifically, I'm looking for a way to retrieve information on when the status of a health check last changed.
Link to API Call: https://developers.cloudflare.com/api/operations/health-checks-list-health-checks
Is there a timestamp provided in the response? I couldn't locate one.
In the dashboard under Traffic --> Health Check Analytics, it's possible to filter timestamps for a health check through the Event Log. This is precisely the information I need, specifically the timestamp of the last "Health Status Change" event log.
Does anyone know of a solution for this?
It seems that through Analytics GraphQL, one could likely access this data. However, it would be preferable to achieve this without using GraphQL. Does anyone have an example of how to query the data from the API call "health-checks-list-health-checks" along with the Event Log for "Health Status Change" solely through GraphQL?
Thank you in advance for any assistance or insights you can provide.
Best regards,
Stefan
6 replies