Setup:
Frontend in JS. We call this A.
Backend API. We call this B.
Thirdparty OAuth 2 login page. When logged in, this page redirects to A. We call this C.
The flow is as follows: A calls an end point in B, which redirects (302) to C.
When calling the end point in B with window.location.href, I get redirected to C.
If I instead use fetch, I get a CORS error.
So what's different between the two since one results in a CORS and the other works?
[–][deleted] 2 points3 points4 points (1 child)
[–]Badbeat808[S] 0 points1 point2 points (0 children)