Praefe
Praefe
CDCloudflare Developers
Created by Praefe on 5/22/2024 in #workers-help
How to make a request to a Zero Trust Access protected endpoint via a worker?
We are trying to make a request to a cloudflare access protected endpoint in a worker. We own the endpoint, and we've set up a Service Auth key and secret, and we're setting the CF headers on the HTTP Client. It appears that the headers are being stripped from the HTTP Client in the worker context, and it just 302's us to the Access page. Is there any documentation to help us with this? Cloudflare Support says that stripping the headers is correct behaviour, so is there an alternative method to making HTTP requests to a Cloudflare Access protected endpoint from a Cloudflare worker that hasn't been documented?
5 replies