1. Alexis Colon Lugo
  2. as SQLite DB Server
  3. Donnerstag, Februar 13 2020, 02:34 AM
  4.  Abonnieren via E-Mail
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
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Alexis Colon Lugo Akzeptierte Antwort
hi
where is in xojo or Xcode the info.plist or send instruction for REST SSL ports
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Kommentar
There are no comments made yet.
Alexis Colon Lugo Akzeptierte Antwort
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)
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hello,

So specify it in the Info.plist like:

<key>CFBundleExecutable</key>
<string>Coop_Asambleas</string>
Kommentar
There are no comments made yet.
Alexis Colon Lugo Akzeptierte Antwort
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
Kommentar
There are no comments made yet.
Alexis Colon Lugo Akzeptierte Antwort
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
Anhänge
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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.
Anhänge
Kommentar
There are no comments made yet.
Alexis Colon Lugo Akzeptierte Antwort
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
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
So you connect using external IP address, not local?
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Misunderstood the docs, NSAllowsArbitraryLoads should work, let's try to set it again
Anhänge
Kommentar
There are no comments made yet.
Alexis Colon Lugo Akzeptierte Antwort
thanks work perfects
:D :D
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Alexis Colon Lugo Akzeptierte Antwort
ok
cool thanks
Kommentar
There are no comments made yet.
  • Seite :
  • 1


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