# App Transport Security Issue

**URL:** <https://community.hubspot.com/t/app-transport-security-issue/11373>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [December 10, 2018, 3:09am UTC](https://community.hubspot.com/t/app-transport-security-issue/11373 "2018-12-10T03:09:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alponce](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alponce/32/92090_2.png) [@alponce](https://community.hubspot.com/u/alponce)\
**Post date:** [December 10, 2018, 3:09am UTC](https://community.hubspot.com/t/app-transport-security-issue/11373/1 "2018-12-10T03:09:01Z")

</div>

I am experiencing an issue in HubSpot where in our mobile iOS app when a user clicks on a link, the expected behavior is to open the webpage link which is running in HubSpot platform. However, the actual behavior right now is that, when a user clicks on that link, it throws an error:

Error Domain=NSURLErrorDomain Code=-1022 “The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.” UserInfo={NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection., NSErrorFailingURLStringKey=[http://www.paymaya.com/faq/?in\_app=true](http://www.paymaya.com/faq/?in%5C_app=true), NSErrorFailingURLKey=[http://www.paymaya.com/faq/?in\_app=true](http://www.paymaya.com/faq/?in%5C_app=true), NSUnderlyingError=0x600001255030 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 “(null)”}}

If you read the error log, it says there that it is trying to access the link: [http://www.paymaya.com/faq](http://www.paymaya.com/faq/) which is live and working if accessed via browser, but is not working if accessed via iOS app. It seems like we cannot view the HubSpot page as webview in the iOS app. Please let me know if I need to configure something, or if there are changes needed on HubSpot’s end.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [December 10, 2018, 1:56pm UTC](https://community.hubspot.com/t/app-transport-security-issue/11373/2 "2018-12-10T13:56:38Z")

</div>

Hi @alponce,

This isn’t caused by an issue on HubSpot’s side. In short, your app’s policy doesn’t allow you to send users to an insecure _HTTP_ link. Instead, you should use the _ **HTTPS** _ version of the URL. I see that `http://www.paymaya.com/faq` already `301` redirects to `https://www.paymaya.com/faq`; placing the HTTPS version as the destination in your app should resolve this issue.

Here are some related discussions I’ve found:

- Stack Overflow | [The resource could not be loaded because the App Transport Security policy requires the use of a secure connection](https://stackoverflow.com/questions/32631184/the-resource-could-not-be-loaded-because-the-app-transport-security-policy-requi)
- Stack Overflow | [App Transport Security policy requires the use of a secure connection - IOS 9](https://stackoverflow.com/questions/32712155/app-transport-security-policy-requires-the-use-of-a-secure-connection-ios-9)
- GitHub | [iOS App Transport Security not Loading any Resources (HTTP)](https://github.com/parse-community/parse-server/issues/760)
