on 02-21-2015 9:11 AM
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?
After some digging around this seems to be the result of a bug in Androids WebView - Authentication challenges are not handled properly.
There are three solutions:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.