cancel
Showing results for 
Search instead for 
Did you mean: 

View Extended UI5 Component causes CORS error in Workflow Inbox.

s_kancherla
Participant
0 Kudos

Dear Community,

I have a SAPUI5 application with an extension point in the view deployed to the Cloud Foundry with common.

I have a second application that implements this extension point. The path to the first application is registered with

sap.ui.loader.config({
  paths: {
   "com/demo/rootviewui":"https://<server>/<code>.rootui.comdemorootviewui-1.0.0"
  }
});

The extended SAPUI5 application works. This SAPUI5 Component in a Workflow User Task.

I am getting a CORS error when opening the user task with this UI5 Component in the My Inbox.

How can I solve this problem?

Thank you

Sudhir

tobias_breyer
Contributor
0 Kudos

Hi Sudhir,

seems the above config path is located on a separate server. That usually leads to cross-server accesses which are typically forbidden by standard configuration / browsers. You can either look into configurations with which you can change the CORS settings or you can try to "move" your UI to where the other UI parts are. It is also possible that the "separate server" part is unnecessary and you get rid of it.

Technically speaking, it is easiest if all the UIs are made transparently accessible behind the same server using a reverse proxy. In Neo, it is usually the Fiori Launchpad / Portal Service, and in CF it's similar technology (like portal, or app router). They "route" to your UI, e. g. based on destinations referenced in the URL.

Regards,

Tobias

Accepted Solutions (0)

Answers (0)