I am trying to setup a poc trying to hit the clever api.
When a I make a post request to https://clever.com/oauth/tokens i get the error below
Access to XMLHttpRequest at 'https://clever.com/oauth/tokens' from origin 'http://tninterim.us-east-1.elasticbeanstalk.com' 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.
Can you help me with this and let me know if I am making any mistake.
My post request looks as follows
"Authorization": "Basic " + btoa(client_id + ":" + client_secret)
console.log("Came in cleverPOST error"+endpoint + " "+err);
Any help is appreciated
Please sign in to leave a comment.