我正在尝试使用jquery post方法验证我的产品的许可证。当我输入以下代码时,我会收到此错误
Failed to load https://api.gumroad.com/v2/licenses/verify: No 'Access-Control-Allow-Origin' header is present on the requested resource.
我尝试使用邮递员,得到了成功的答复。
这是我使用的代码
$.post('https://api.gumroad.com/v2/licenses/verify', {product_permalink: "QPPED", license_key:"374655D6-5F404674-ACD67CA5-981BDFBD"},
function(returnedData){
console.log(returnedData);
});
以及小提琴here