Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Access to html basic protected image via SapUI5 & Cordova

$
0
0

Heya

 

I'm trying to access an image protected by a simple http basic authentication mechanism. This example works fine when using my browser

...

var mImage = sap.m.Image("Im1");

mImage.setSrc("http://user:password@192.168.0.100/image.jpg");

...

var page = new sap.m.Page({
title: "Image",
content:
          mImage
        
}

Yet when I wrap it in a Cordova container (Android) this simple way of attaching user+pw does not seem to work. The webserver responds with a 401 error and my app does not send an authentication header.

 

Any suggestions on how I could tackle this issue?


Viewing all articles
Browse latest Browse all 8124


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>