Hello experts,
I'm facing an issue and I'm desperatly trying to find help.
I have successfully created a service in my gateway-as-a-service account. It's a service from an on-premise backend and everything - I mean hana cloud connector -works fine when i'm directly calling urls from gateway-as-a-service.
Now I want to call this url from my sap ui5 app deployed in the sap hana cloud platform (with the same account) but I have several issues :
- First, I have to start my browser with --disable-web-security because of the Access-Control-Allow-Origin. Why is that ? It's the "same cloud", the same account ?
- Then, the first time I launch my app, the first $metadata call returns me a response from an url like that accounts.sap.com/saml2/idp/sso/accounts.sap.com as if I'm not connected...
If I log on account.sap.com (which I assumed I already did by logging into my cockpit) and refresh my app I can retreive datas, but I find these two points strange because both my gateway-as-a-service and my sap ui5 app are deployed in the cloud with the same account.
I never touched anything in the "Trust" tab because it says by default it trusts SAP Id Service but maybe I'm wrong ?
What did I do wrong ?
Thanks for your help.
Regards.