dev52
1
Hey,
I have a web app that makes a request to my backend which builds the url for the auth0 /authorize endpoint and then redirects to it.
I am getting this error

I have 2 tenants (one for prod one for dev) and it works in 1 of the tenants and not in the other
I have the backend URL in the allowed origins, also have cors enabled like this:

Try setting the cors like this
app.use(
cors({
credentials: true,
origin: [
'<add your url here that sends the request>' //http://localhost:3000
],
})
);
2 Likes
dev52
3
That fixed it looks like.
2 Likes
Teamwork makes the dreamwork!
system
Closed
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.