2017-03-23 6 views
2

私はcocoon-cordova-labs-local-webserverを使用しています。接続が拒否されました繭 - コードバ - ラボ - ローカルウェブサーバー

は、ここで全体​​3210です:

<?xml version='1.0' encoding='utf-8'?> 
<widget id="com.app.app" version="6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> 
    <name>Name</name> 
    <author email="[email protected]" href="http://dscova.com">The Dscova Team</author> 
    <content src="http://localhost:49000" /> 
    <access origin="*" /> 
    <preference name="orientation" value="portrait" /> 
    <platform name="ios"> 
     <config-file parent="ITSAppUsesNonExemptEncryption" target="*-Info.plist"> 
      <false /> 
     </config-file> 
    </platform> 
    <plugin name="cordova-custom-config" spec="~3.1.2" /> 
    <engine name="ios" spec="~4.3.1" /> 
    <engine name="android" spec="~6.1.2" /> 
    <engine name="browser" spec="~4.1.0" /> 
    <plugin name="cordova-plugin-whitelist" spec="~1.3.2" /> 
    <plugin name="cocoon-cordova-labs-local-webserver" spec="~2.4.1" /> 
</widget> 

私もHTMLのheadでこれを持っている:

<meta 
    http-equiv="Content-Security-Policy" 
    content=" 
     default-src 'self' data: gap: 
     http://localhost* 
     https://fonts.googleapis.com 'unsafe-eval' 'unsafe-inline'; 
     style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; 
     font-src 'self' https://fonts.gstatic.com; 
     img-src * 'self' data:; 
     media-src *; 
    "> 

app start msg

+0

同じ状況。私の繭アプリ – saike

答えて

0

aahhhが、私はこのプラグインは、iOS用のみであることに気づきました。アンドロイドのためには、別のプラグインを使用する必要があります。

関連する問題