Hey! I'm seeing a CORS issue deploying a React app...
# ory-network
h
Hey! I'm seeing a CORS issue deploying a React app to Cloudflare pages and trying to login. Initially, I was getting a CORS error when hitting GET
<my-project>/self-service/login/browser
. I was able to resolve this by running:
Copy code
ory patch project <project-id> \
  --replace '/cors_public/enabled=true' \
  --replace '/cors_public/origins=["<my-frontend-url>"]'
Now the GET request works. But when my app tries to call POST
<my-project>/self-service/login?flow=<flow-id>
using the SDK's
updateLoginFlow
, it is blocked by the CORS policy. Is there something I'm missing? I have also tried updating my `_headers` file for Cloudflare pages without success