CORS /authorize Problem

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
image

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:
image

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

That fixed it looks like.

2 Likes

Teamwork makes the dreamwork!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.