Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Must set App Transport Security Allow Arbitrary Loads to Yes #34

Open
lucamegh opened this issue Oct 10, 2020 · 1 comment
Open

Must set App Transport Security Allow Arbitrary Loads to Yes #34

lucamegh opened this issue Oct 10, 2020 · 1 comment

Comments

@lucamegh
Copy link

lucamegh commented Oct 10, 2020

I'm trying to get a favicon like this FavIcon.downloadPreferred("https://theverge.com", width: 128, height: 128). The request always fails with "noIconsDetected" as I get this iOS error:

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.

Enabling arbitrary loads solves the issue but that can lead to security issues. For some reason the library turns my HTTPS urls into HTTPs. Any idea?

@leonbreedt
Copy link
Owner

@lucamegh i am no longer able to work much on this library. you may want to consider an alternative such as https://github.com/will-lumley/FaviconFinder

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants