1. Alexis Colon Lugo
  2. as SQLite DB Server
  3. Четверг, Февраль 13 2020, 02:34 AM
  4.  Подписаться через 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
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
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.
Комментарий
There are no comments made yet.
Alexis Colon Lugo Ответ принят
hi
where is in xojo or Xcode the info.plist or send instruction for REST SSL ports
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Комментарий
There are no comments made yet.
Alexis Colon Lugo Ответ принят
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)
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Hello,

So specify it in the Info.plist like:

<key>CFBundleExecutable</key>
<string>Coop_Asambleas</string>
Комментарий
There are no comments made yet.
Alexis Colon Lugo Ответ принят
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
Комментарий
There are no comments made yet.
Alexis Colon Lugo Ответ принят
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
Вложения
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
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.
Вложения
Комментарий
There are no comments made yet.
Alexis Colon Lugo Ответ принят
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
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
So you connect using external IP address, not local?
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Misunderstood the docs, NSAllowsArbitraryLoads should work, let's try to set it again
Вложения
Комментарий
There are no comments made yet.
Alexis Colon Lugo Ответ принят
thanks work perfects
:D :D
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
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.
Комментарий
There are no comments made yet.
Alexis Colon Lugo Ответ принят
ok
cool thanks
Комментарий
There are no comments made yet.
  • Страница :
  • 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