Forum Stats

  • 3,733,852 Users
  • 2,246,830 Discussions


CORS issue when trying to cunsume OIC rest API from Oracle Jet app

User_1LXHE Member Posts: 4 Green Ribbon
edited May 5 in Oracle JET


I am getting CORS erorr when trying to call REST API published in OIC. in the rest definition Allow Origin * was set but still getting the CORS error.

Ant suggestions ?



  • John 'JB' Brock-Oracle
    John 'JB' Brock-Oracle Posts: 2,546 Employee

    CORS is always going to be a server side configuration issue. There isn't anything from the client that can be done to get around it (without disabling security at the browser level). I would go to the OCI team and ask for how to get the CORS configuration setup correctly.

    You can also use tools like Postman to help test the URL without having to build up a JET application first.

  • MABaig
    MABaig Member Posts: 89 Red Ribbon

    I hope you are giving authorization details as below while calling ajax post method: It will throw cors error if you dont provide credentials in base64.

        headers: { Authorization: "Basic " + base64Credentials },

Sign In or Register to comment.