2016-10-23 6 views
0

現在、Ionicアプリで作業中です。 FirebaseのコンテンツはiOS 10で読み込まれなくなりました。私はAngularFire 1.2.0とFirebase 2.4.2を使用しています。私は何度Firebaseのコンテンツがios 10 - ionicアプリケーションに読み込まれない

[Error] Failed to load resource: An SSL error has occurred and a secure connection to the server cannot be made. (.lp, line 0) 

をこのエラーを取得していますので、私は、だから私は私のindex.html対応するメタタグに追加まだ動作していない新しいコンテンツセキュリティポリシーを探してきました。 Herokuの別のアプリとの接続はうまくいきます。私が何が欠けているのか分からない。

<meta http-equiv="Content-Security-Policy" 
     content="default-src 'self' gap://ready file://* *; 
     script-src 'self' 'unsafe-inline' 'unsafe-eval' 
     127.0.0.1:* 
     https://*.herokuapp.com/ 
     https://*.firebaseio.com/; 
     style-src 'self' 'unsafe-inline' 
     127.0.0.1 
     https://*.herokuapp.com/ 
     https://*.firebaseio.com/; 
     connect-src 'self' 'unsafe-inline' 'unsafe-eval' 
     127.0.0.1:* 
     https://*.herokuapp.com/ 
     https://*.firebaseio.com/"> 

答えて

0

問題を解決しました。 CSPのconnect-srcルールに「wss://.firebaseio.com」と「https://.firebase.com/」を追加するだけでした。

関連する問題