1

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!

Community
  • 1
  • 1
Lentyai
  • 968
  • 1
  • 10
  • 25
  • This question describe the same problem -> [See this](http://stackoverflow.com/questions/33623607/unauthorized-error-when-loading-images-on-iphone-in-meteor-cordova-app) – Romario Huebra Aug 12 '16 at 12:56
  • I'm not using meteor, but Cordova within Visual Studio 2015. Unfortunately, I don't have any clue where should I add this App.accessRule('*'); – Lentyai Aug 14 '16 at 06:30

0 Answers0