Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Getting error while integrating reports with public HTML page

Received Response
152
Views
4
Comments

Content

getting this error on the html page display:

AJAX request failed during bootstrap. Request 'https://domain.analytics.ocp.oraclecloud.com:443/dv/ui/api/v1/sessioninfo/ext'; response:

 

in the chrome console, I am getting 

 

Access to XMLHttpRequest at 'https://domain.analytics.ocp.oraclecloud.com/dv/ui/api/v1/sessioninfo/ext?stateId='; from origin 'http://127.0.0.1:8090'; has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

 

Rest of the things looks okay, but I am unaware where to set/disable the CORS policy in the OAC console. 

 

Tagged:

Answers

  • Neeti Choksi-Oracle
    Neeti Choksi-Oracle Rank 4 - Community Specialist

    Hi Rahul,

    Looks like your token is expired. Default expiry time for the token is 100 seconds. You need to increase the token lifetime. Please check out this thread for step-by-step debug process.

    https://cloudcustomerconnect.oracle.com/posts/0b267dc94c

    Feel free to reach out if this doesn't work out.

    Regards,

    Neeti

  • rahul kumar-185551
    rahul kumar-185551 Rank 2 - Community Beginner

    Thanks Neetu for taking time to reply, I have already gone through your previous reply before posting this thread, so before testing I always download the latest token with 1000 min as expiry, still no luck.

  • Neeti Choksi-Oracle
    Neeti Choksi-Oracle Rank 4 - Community Specialist

    Hi Rahul,

    Can you please share the output of the token generation? Also, please share the script where you have passed the token for authentication.

  • Neeti Choksi-Oracle
    Neeti Choksi-Oracle Rank 4 - Community Specialist

    Sample output should look like this-

    Sample -
    {“access_token”:”...<token shortened>...”,”token_type”:”Bearer”,”expires_in”:100}