Skip to Main Content

Siebel

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

Invoking an API from a Siebel Open UI PR script

Vasanti DaneDec 22 2023

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.

Comments
Post Details
Added on Dec 22 2023
0 comments
39 views