fresh-art-76363
10/02/2023, 11:14 PMconst nextConfig = {
rewrites() {
return [
{ source: "/ory/:path*", destination: `${process.env.ORY_API_URL}/:path*` },
];
},
}
I've tried to fix this by changing my project's cors settings with this cli command:
ory patch project PROJECT_ID \
--replace '/cors_public/enabled=true' --replace '/cors_public/origins=["<http://localhost:3000>"]'
This partially works to create a new login flow:
.createBrowserLoginFlow({
refresh: Boolean(refresh),
aal: aal ? String(aal) : undefined,
returnTo: returnTo ? String(returnTo) : undefined,
})
But on submit, I get a cors error again:
.updateLoginFlow({
flow: String(flow?.id),
updateLoginFlowBody: values,
})
Has anyone ever had a similar problem? Thanks for you support!