Hi,
I have 2 apps in the same HCP Trial account (so using identical authentication). One is a Java app and the other a HTML5 app.
I want to call the Java app from the HTML5 app using AJAX but haven't been able to get it to work...
The HTML5 app is invoked like this: https://myhtml5-p00000000trial.dispatcher.hanatrial.ondemand.com
The Java app is invoked like this: https://myjavap00000000trial.hanatrial.ondemand.com/myproject/?action=x
I tried putting the Java app URL directly into AJAX in the HTML5 app but this gave a 302 error (because of authentication redirect?)
I then tried adding a HCP destination but for all of the variations I tried (Basic auth, App2AppSSO, PrincipalPropagation etc.) I always got 403 unauthorized error: "Access denied to system myjavap00000000trial.hanatrial.ondemand.com:443. In case this was a valid request, ensure to expose the system correctly in your SAP HANA Cloud connector."
Based on that message I also tried using CC (even though it shouldn't be needed as the java app is not behind a firewall) but wasn't able to get that way to work either.
Can anyone share details on exactly how this scenario should be configured?
Thanks,
Philip