2

Im trying to verify a license for my product using jquery post method. When I type in the below code I get this error

Failed to load https://api.gumroad.com/v2/licenses/verify: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I tried using the using postman and I get a success response.

Here's the piece of code i used

$.post('https://api.gumroad.com/v2/licenses/verify', {product_permalink: "QPPED", license_key:"374655D6-5F404674-ACD67CA5-981BDFBD"}, 
    function(returnedData){
         console.log(returnedData);
});

and also the fiddle here

  • Possible duplicate of [XMLHttpRequest cannot load XXX No 'Access-Control-Allow-Origin' header](https://stackoverflow.com/questions/35553500/xmlhttprequest-cannot-load-xxx-no-access-control-allow-origin-header) – Louys Patrice Bessette Jul 29 '18 at 19:31

1 Answers1

1

Based on gumroad api doc, It is not allowed to make gumroad license check request via the javascript.

Tamer
  • 91
  • 2
  • 10