Problem With Auth0 Custom Authorizer in Examples Repo (CORS / 401 Unauthorized)

OK I think the CORS is misleading, as this is not set on your 401 response. So let’s focus on the real problem: your 401 error.

401 means that your request is unauthorised… so your auth0 authoriser is failing.

did you replace the code here in the example authoriser?

const AUTH0_CLIENT_ID = 'your-auth0-client-id-here';
const AUTH0_CLIENT_SECRET = 'your-auth0-client-secret-here';

?