Home Forums A Journey to the Center of Pega Constellation – Q&A Error while invoking DX Api from React application

  • Error while invoking DX Api from React application

    Posted by Ragul on April 24, 2023 at 1:50 pm

    I have configured Pega React starter pack. I enabled OAuth2.0 for the “api” service package and tunneled the localhost using ngrok. I was able to authenticate successfully and login from the react application. But getting “Cross Origin Resouce Sharing Error:MissingAllowOriginHeader” while invoking the DX api’s to load the worklist and the case types. Has anyone faced similar issue?

    Premkumar replied 1 year, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Premkumar

    Administrator
    April 27, 2023 at 11:07 am

    Hi Ragul, as adviced temporarily we disabled the authentication in service package and this blocker issue is gone. i suspect this can be related to ngrok tunnelling..

    you need to make sure to use allow all headers and try to use your own certificates ( which I explained in constellation section)