After Zero Trust login, my website works but API calls fail due to CORS. Visiting t

What is the name of the domain?

What is the issue you’re encountering

I have added my website and API to Zero Trust. After signing into Zero Trust, the website works, but API requests are blocked due to CORS. If I open the API directly in the browser and then return to the website, the issue is resolved. How can I authenticate the API automatically when opening the website after Zero Trust authorization?

Screenshot of the error

Screenshot 2025-04-14 234309.png