Hello,
I’m trying to login user directly using the following API:
https://AUTH_DOMAIN/oauth/token
Request body:
grant_type: http://auth0.com/oauth/grant-type/password-realm
client_id: ‘’,
audience: ‘’
username: ‘example@example.com’
password: ‘123456’
realm: ‘Username-Password-Authentication’
And everything works as expected if I’m calling above endpoint and making POST request using POSTMAN.
But trough an SPA ( Angular ) application I’m getting the CORS issue.
What I am doing in an Angular application is simply making the same POST request as I am doing trough POSTMAN.
I know that I have to add Allowed Origins (CORS) so I did that in Application that corresponds to client_id that I’m sending in POST request.
Any ideas what I’m missing or doing wrong?
Thanks