Skip to Main Content

Siebel

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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
209 views