Authentication already works in my app so i can login/logout. I am trying to add reset password functionality to my app and have problem triggering reset password email.
I am following instructions from Change Users' Passwords.
I am trying to make request to the Authentication API from browser.
I added url(localhost) to Allowed Web Origins but still get cors error.
public static passwordReset(email: string): Promise<any> {
let options: any = {
method: 'POST',
url: 'https://myapp.auth0.com/dbconnections/change_password',
headers: { 'content-type': 'application/json' },
body: {
client_id: 'myclientId',
email: '',
connection: 'Username-Password-Authentication'
},
json: true
};
return fetch(
'https://myapp.auth0.com/dbconnections/change_password',
options
);
}
can You help me with this?