BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  CORS Error

    Posted Tue May 16, 2023 09:24 AM

    Hello team,

    Hope you are doing well. We recently migrated our Case Builder Solution to Newer Case builder under BAW environment. Post migrating Solution, I am getting error while testing application. Let me know If you have any solution for that it will be a great help. we are using IBM CaseManager Rest API to perform certain operation.

    Error in Browser Console

    Access to XMLHttpRequest "https://MyUrls" from origin "My Server Name" 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.



    ------------------------------
    Rutvik Rajpura
    ------------------------------


  • 2.  RE: CORS Error

    Posted Wed May 17, 2023 08:12 AM

    Hi Rutvik,
    not sure about the architecture/topology you are using, but assuming you are moving to the external CPE/ICN pattern, did you follow
    https://www.ibm.com/docs/en/baw/22.x?topic=upgrading-using-external-content-navigator

    Especially 7.a.ii has instructions to configure CORS correctly.

    Best regards,
    Michael



    ------------------------------
    Michael Kirchner
    Sr. Business Automation Partner Technical Specialist
    IBM Technology
    Germany
    ------------------------------



  • 3.  RE: CORS Error

    Posted Fri May 19, 2023 07:48 AM

    Hello Michael,

    Thanks for the quick response. The above article you suggested is for a Custom code where we are using navigator plugins or widget to perform operation where we need to modify web.xml and configurations files. In my current Solution we are making Case REST API call to fetch the roles of user for certain validation from ScriptAdaptor. Also, I am not admin person so not sure about what configuration I can make in order to resolve this issue.




    ------------------------------
    Rutvik Rajpura
    ------------------------------