Hello - my work account doesn’t allow me to login so I’m on my personal account.
I’m updating a legacy application for work and the request to get a token fails with the Cors issue stated here:
return $.ajax({
url: `https://nusspro.auth0.com/oauth/token`,
type: 'POST',
crossDomain: true,
data: {
grant_type: 'client_credentials',
client_id: my.auth0APIClientID,
client_secret: my.auth0APIClientSecret,
audience: `https://nusspro.auth0.com/api/v2/`
},
success: function (data) {
// todo - consume access token
return data.access_token;
},
error: function (jqXHR) {
console.log(json.stringify(jqXHR));
}});
what should I use instead ?