-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-node-auth0-custom-authorizers-api example gives me CORS error #120
Comments
Your comment makes it sound like you have an empty |
I just see I had a typo in my first comment. What I was saying was: "Even though CORS is set to allow '*'. So yeah, I did use the example from the current master (I cloned the repo). I still get the error. And when I manually enable cors in the API Gateway console it has no effect. Maybe I should remove everything and try again. |
Nevermind. I mixed up the API URL -,-. Sorry! |
Hi,
I was just trying out the above mentioned example and it didn't work for me. I did everything exactly like the README stated. The error occurs when I'm trying to invoke the API calls (so logging into auth0 and obtaining a token works). Whether I call the public endpoint or the private endpoint it gives me the typical "No 'Access-Control-Allow-Origin' header is present on the requested resource". Even though cors is set to '' (as you can see in the serverless.yml). Even when I specifically enter my sites URL (instead of '') it won't work. When I test the API in the API Gateway console the Access-Control-Allow-Origin is present.
Any ideas?
The text was updated successfully, but these errors were encountered: