Hope someone has a solution for it...
I have images that get their src
attribute from www.yammer.com
domain dynamically in Cordova application. In Android everything works perfectly. Unfortunately, iOS is not.
I receive: Failed to load resource: the server responded with a status of 401 (Unauthorized)
.
I already installed the cordova-plugin-transport-security to allow external resources in iOS with its default setting of NSAllowsArbitraryLoads
to true
. Also I've updated its plugin.xml
to add ExternalHosts
as *
or as www.yammer.com
as suggested here, here and here.
Unfortunately, it didn't solve the problem completely. Some images succeed in loading but some continue to issue 401 (Unauthorized)
. The most weird part is that in case some image has loaded and showed, after restarting the iPhone it may stop showing and result in 401 (Unauthorized)
.
Has anybody had same issue and have a solution for it?
Any help would be appreciated!