1. Alexis Colon Lugo
  2. as SQLite DB Server
  3. 木, 2月 13 2020, 02:34 AM
  4.  メールで購読
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.
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