Failed to load dev-855761.okta.com/api/v1/authn: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:3000' is therefore not allowed access.
After a long military career, I decided on a new path, something more productive. So three years ago I bought my first laptop. Since then I have I have built countless websites and several apps.
After a long military career, I decided on a new path, something more productive. So three years ago I bought my first laptop. Since then I have I have built countless websites and several apps.
Interesting, kind of new to node.
Was trying out this and got the following error:
POST localhost:3000/api/users 400 (Bad Request)
Failed to load dev-855761.okta.com/api/v1/authn: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:3000' is therefore not allowed access.
Love:
I'd first check to make sure localhost:3000 is listed in your trusted origins.
In the developer dashboard menu, hover over API and choose trusted origins. Make sure localhost:3000 is listed with CORS and Redirect selected.
yep It is there.
Is there a public repo of your code somewhere I could look at?
Hi Lee, I have the same problem I think, is there a git repo for this script?
You can check what you have against this repo: github.com/oktadeveloper/okta-node...
Thank-you Lee, love the way login path is set up
Here you go: github.com/lhuria94/okta-react