1. Alexis Colon Lugo
  2. as SQLite DB Server
  3. Thursday, February 13 2020, 02:34 AM
  4.  Subscribe via email
connection from iPad using internet i have this error The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.

what i have to do to fix it

thanks
Comment
There are no comments made yet.
Alexis Colon Lugo Accepted Answer
ok
cool thanks
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 1
Sergey Pashkov Accepted Answer
It's also possible to use SSL for REST to avoid using the Info.plist but it may be more complicated on modern iOS, since you can't install self-signed certificates on devices, they must be issued by a trusted authority (like Let's Encrypt, Comodo, etc).
Such certificates can be generated for a domain name, so it is necessary to have it, too.
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 2
Alexis Colon Lugo Accepted Answer
thanks work perfects
:D :D
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 3
Sergey Pashkov Accepted Answer
Misunderstood the docs, NSAllowsArbitraryLoads should work, let's try to set it again
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 4
Sergey Pashkov Accepted Answer
So you connect using external IP address, not local?
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 5
Alexis Colon Lugo Accepted Answer
Hi i test the info.plist but i have same error connection from iPad using internet i have this error The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.

what is next step to do

Thanks
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 6
Sergey Pashkov Accepted Answer
No, there are mistakes.
But anyway it looks like NSAllowsArbitraryLoads doesn't work in iOS 11+.
The server is on the local version, right? Then NSAllowsLocalNetworking key should be used.
I attached a file, I can't test it myself, but it appears to be correct.
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 7
Alexis Colon Lugo Accepted Answer
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 8
Alexis Colon Lugo Accepted Answer
this is my code

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<!--
info.plist


Created by Alexis Colon Lugo on 2/26/2020.
Copyright (c) 2020 ___ORGANIZATIONNAME___. All rights reserved.
-->
<plist version="1.0">
<<dict>
<key>CFBundleExecutable</key>
<string>Coop_Asambleas</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>

but no works
can you make me the info.plist file to see if i am making wrong
Thanks
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 9
Sergey Pashkov Accepted Answer
Hello,

So specify it in the Info.plist like:

<key>CFBundleExecutable</key>
<string>Coop_Asambleas</string>
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 10
Alexis Colon Lugo Accepted Answer
Hi
I have error can i config for https to avoid error like this one
“Coop_Asambleas” does not contain a valid Info.plist, so it cannot be installed on iPad

(“CFBundleExecutable” is not specified)
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 11
Sergey Pashkov Accepted Answer
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 12
Alexis Colon Lugo Accepted Answer
hi
where is in xojo or Xcode the info.plist or send instruction for REST SSL ports
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 13
Sergey Pashkov Accepted Answer
just add the following lines in 'info.plist'

<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>

https://stackoverflow.com/a/34202468

Or you can enable REST SSL port and use HTTPS over this port if you like.
Comment
There are no comments made yet.
  1. more than a month ago
  2. as SQLite DB Server
  3. # 14
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories