Please help... I am trying to the the token by i hit error
HTTP Method : POST
Production URL : https://exampleRL/token
"Authorization" header value : Basic base64encode(Client_ID:Secret)
"Content-Type" header value : application/x-www-form-urlencoded
"grant_type" form data value : client_credentials
My javascript within the HTML code
var reqtoken = new XMLHttpRequest();
var urltoken = "https://exampleRL/token"
reqtoken.withCredentials = true;
reqtoken.open("POST", urltoken);
reqtoken.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
reqtoken.setRequestHeader("Authorization", "Basic " + loginDetails);
reqtoken.send(data);
Hitting Error :
Access to XMLHttpRequest at 'https://exampleRL/token' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Please help.. Dont understand whats wrong..