Java

Get Involved. Join the Conversation.

Topic

    Ayodele Mark Lawrence
    How to set "Access-Control-Allow-Origin" on...
    Topic posted June 25, 2019 by Ayodele Mark LawrenceGreen Ribbon: 100+ Points, tagged WebLogic 
    26 Views
    Title:
    How to set "Access-Control-Allow-Origin" on Weblogic server
    Summary:
    I need a guidance on how to set "Access-Control-Allow-Origin" on Weblogic server
    Content:

    We have a have a bot SDK deployed on web logic  server but got this error during testing. We have tested successfully on the Dev/Test environment but we got this error after deploying to production.

    Any assistance on how to set this will be appreciated.

    Error: 
    Access to XMLHttpRequest at 'https://pcschat.firstbanknigeria.com:4443/botsdk/loader.json' from origin 'https://hdbc.fa.em2.oraclecloud.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Unable to set "Access-Control-Allow-Origin" on Weblogic server