Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25764] Windows: Add support for RequestHeaders for ImageViews

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterRene Pot
AssigneeKota Iguchi
Created2018-02-09T00:47:34.000+0000
Updated2018-03-01T14:04:25.000+0000

Description

A lot of times an image requires requestheaders, like oAuth/basic auth or others before it can be loaded. Right now a workaround is needed to get these images (doing a XHR call to fetch images, then insert it into imageview). However, by adding support for requestheaders to ImageViews a workaround would not be needed anymore. A possible example of implementation:
Ti.UI.createImageView({
    url: 'http://example.com/my_image.png',
    requestHeaders: {
        'Authorization' : 'Bearer myToken'
    }
});

Comments

No comments

JSON Source