0

I am working with visual studio cordova and we embeded an Iframe. On android it is working fine, but on Ios (9+) :

Failed to load resource: An SSL error has occurred and a secure connection to `the server cannot be made.

I ve read other thread suggesting to change NSAppTransportSecurity. I've done it via Transport Security Plugin.

<dict>

          <key>NSAppTransportSecurity</key>
          <dict>
            <key>NSExceptionDomains</key>
            <dict>
              <key>mywebsite.com</key>
              <dict>
                <!--Include to allow subdomains-->
                <key>NSIncludesSubdomains</key>
                <true/>
                <!--Include to allow HTTP requests-->
                <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
                <true/>
                <!--Include to specify minimum TLS version-->
                <key>NSTemporaryExceptionMinimumTLSVersion</key>
                <string>TLSv1.1</string>
              </dict>
            </dict>
          </dict>
        </dict>

I've change the CSP:

 <meta http-equiv="Content-Security-Policy"
        content="default-src * gap: ;
                   style-src 'self' 'unsafe-inline' 'unsafe-eval'; 
                   script-src 'self' 'unsafe-inline' 'unsafe-eval';
                    'child-src'*;
                    'frame-src':*;      
        " />

I stil got this error. Any help out there?

4

1 回答 1

0

实际上它来自嵌入的 iframe。它使用 sha-1 签名进行认证,Apple 不允许此签名。所以我正在更改签名。

于 2016-08-16T08:04:45.167 回答