title: UI5-Application: Call to functionimport works ONLY in WebIDE but fails everywhere else
body: <p>We are developing a custom UI5 application.
  It is developed in the WebIDE, and therefore deployed as a BSP.
  When we use the underlying model for calls ( currently 3, no CRUD ), we chose the path of using ONLY functionimports to communicate with the backend.
  All of them work with the POST method.
  And all of them work ONLY inside the WebIDE.</p>
  <p>Once, I access the BSP URL otherwise, we get HTTP 500 error with &quot;error while requesting  the ressource.</p>
  <p>We already created links, to enable special portfowarding, no result.
  Let's stick to my URL from the BSP first.</p>
  <p>I paste it into my 3 browsers: 500.
  We also created a special non dialogue-user with proper roles and permissions, and in the SICF tree we assigned it .
  Again, when calling from inside the WebIDE, the functionimport-calls work, otherwise not.
  Error-Logs are empty.
  Dumps do not happen.
  ST05 trace shows where 500 is passed, deeply inside the HTTP framework, yet no chance to spot the code location, neither a breaktpoint.
  In SICF logon-settings we have:</p>
  <ul>
  <li>Types all, also flagged &quot;all&quot;, SAML: inherited from parent node, sec-sessions Not limited, fix user and pw, sec: Standard, auth:Standard Sap user.<br />
  The gui-options contain ONLY one flag: ~CHECK_CSRF_TOKEN 0.</li>
  </ul>
  <p>In my client I use :</p>
  <p><a href="https://i.stack.imgur.com/9ZxPp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9ZxPp.png" alt="enter image description here" /></a></p>
  <p>Where the model is initialized as :</p>
  <pre><code>function initModelV2()  {
  
  var sUrl = &quot;/sap/opu/odata/sap/Z_this_is_a_company_secret_service/&quot;;
  var oModel = new sap.ui.model.odata.v2.ODataModel(sUrl);
  sap.ui.getCore().setModel(oModel);
  </code></pre>
  <p>}</p>
  <p>What else can I do to get &quot;at least closer&quot; to the reason, WHY ?</p>