Hello,
I should get an authentication from another website to use a java applet. I have two problems, one of them is CORS, I tried to solve it via http.call(‘get’…) from server and the other one is await/async. My solutions is always return as undefined.
But couldn’t solve the problem.
I should mimic this
$.ajax("http://********sign.php?request=" + toSign).then(resolve, reject);
and try to solve like this
client.js
return function(resolve, reject) {
await Meteor.promiseCall('setSignaturePromise', toSign).then(resolve, reject);
}
server.js
HTTP.call('get', 'http://********sign.php?request=' + toSign);
How can i solve this problem? Thanks.