Service Auth Token results 502 status

Environment Setup: In zero trust the tunnel is off so i should get status 530.

curl -H "CF-Access-Client-Id: .access" -H "CF-Access-Client-Secret: " https://domain.com -L -I

Returns 530 most of the time but sometimes i get 502 this is the issue why suddenly i get 502 even my tunnel is turned off. After some request i again start getting 530 as expected

Environment Setup: Tunnel is on.
curl -H "CF-Access-Client-Id: .access" -H "CF-Access-Client-Secret: " https://domain.com -L -I

Always returns 502 instead of returning original server page.

To debug i have removed the service auth policy and whitelisted the IP then i get origin server page.
Was this page helpful?