Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

News Article view controller will fail if URL is HTTP #769

Closed
aaronschachter opened this issue Jan 21, 2016 · 3 comments · Fixed by #772
Closed

News Article view controller will fail if URL is HTTP #769

aaronschachter opened this issue Jan 21, 2016 · 3 comments · Fixed by #772
Assignees

Comments

@aaronschachter
Copy link
Contributor

Refs #735 (comment) -- if you link to an article with http and not https, it gets blocked:

2016-01-21 14:45:16.011 Lets Do This[5653:1457836] 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.

@aaronschachter
Copy link
Contributor Author

Long SO thread about how using NSAllowsArbitraryLoads to allow any HTTP request is

  • a security threat to user
  • the only way to actually load any website an editor inputs (it seems the preferred secure way would be to manually code each http domain into the NSExceptionDomains -- see accepted answer

@aaronschachter
Copy link
Contributor Author

Looks like SFSafariViewController is the way to handle this - will give it a shot

@aaronschachter
Copy link
Contributor Author

SFSafariViewController is only available in iOS9. Sounds like using NSAllowsArbitraryLoads to handle this shouldn't prevent us from app store submission so i'll set this back to close this one out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant