I have 2 endpoint:
I enabled both site with cloudflare acess.
When I login into cloudflare acess from the frontend I want the backend to be authenticated too.
So perhaps I should send the cookie to the backend using xmlhttprequest.withCredentials = true
But the request have a preflight and it gets redirected.
How can I disable redirect on preflight? or there’s other method that recommended?
This question is reposted to the security-access category without tags, as suggested by cloonan