前提・実現したいこと
iOSでMacにUSBデバッグでつなげた時に正常にログを表示したい。
*現在、AndroidとiOSで同時開発を行っています。
iOS 12.1
MAC OS Mojave 10.14.1
通信 socket.io 1.4.8
発生している問題・エラーメッセージ
Refused to connect to monaca://~~~~~~~~) because it appears in neither the connect-src directive nor the default-src directive of the Content Security Policy.
該当のソースコード
[html部分]
<meta http-equiv="Content-Security-Policy" content="
default-src * data: gap://ready file: content: https://ssl.gstatic.com;
style-src * 'unsafe-inline';
script-src * 'unsafe-inline' 'unsafe-eval'">
[JS部分]
console.log('test');
試したこと
1.safariでのUSBデバック → 表示されない。
2.alert('test')での動作確認 → 問題なく表示される。
3.下記URLを参考にmetaタグを編集
https://ufirst.jp/memo/2016/09/16/ios%E3%81%A7refused-to-load-gapready-because-it-appears-in-neither-the-child-src-directive-nor-the-default-src-directive-of-the-content-security-policy-%E3%82%A8%E3%83%A9%E3%83%BC/
ご存知の方いらっしゃいましたらよろしくお願いいたします。
あなたの回答
tips
プレビュー