Hi,
We are trying to invoke Canada Post Address Complete API from siebel Form Applet. The invocation is through an internal server that uses token authentication. The call however is always failing with CORS error.
var t = new i.XMLHttpRequest;
t.withCredentials = true,
t.open("POST", "https://xxx.com/api/service1/xx/find/v2.10/json3ex.ws", !0),
t.setRequestHeader('Authorization', 'Bearer '+ <Token>),
t.setRequestHeader("Content-Type", "application/json"),
t.send())
Any ideas on how to resolve this?
We have to pass the bearer token in order to authenticate.