Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 425FD200C28 for ; Mon, 13 Mar 2017 22:48:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4100D160B5D; Mon, 13 Mar 2017 21:48:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 86C12160B85 for ; Mon, 13 Mar 2017 22:48:47 +0100 (CET) Received: (qmail 46858 invoked by uid 500); 13 Mar 2017 21:48:46 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 46687 invoked by uid 99); 13 Mar 2017 21:48:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2017 21:48:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 09D9BCAD7F for ; Mon, 13 Mar 2017 21:48:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id qXBvFwcDHvuq for ; Mon, 13 Mar 2017 21:48:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 5A1395FDDF for ; Mon, 13 Mar 2017 21:48:44 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 19D99E043B for ; Mon, 13 Mar 2017 21:48:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id C4866243A6 for ; Mon, 13 Mar 2017 21:48:41 +0000 (UTC) Date: Mon, 13 Mar 2017 21:48:41 +0000 (UTC) From: =?utf-8?Q?Sondre_Bjell=C3=A5s_=28JIRA=29?= To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CB-12566) WKWebViewEngine does not use CSP meta-tag, fails to load about:blank MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 13 Mar 2017 21:48:48 -0000 [ https://issues.apache.org/jira/browse/CB-12566?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D159230= 18#comment-15923018 ]=20 Sondre Bjell=C3=A5s edited comment on CB-12566 at 3/13/17 9:47 PM: -------------------------------------------------------------- Create a repo project here, I will have to verify tomorrow at the office wh= ere I have the Mac and everything. I'll leave a comment here tomorrow if th= is repo is enough to reproduce the error, or if there are additional change= s I need to do to replicate the problem: https://github.com/sondreb/cordova= -wkwebview-bug was (Author: sondreb): Create a repo project here, I will have to verify tomorrow at the office wh= ere I have the Mac and everything. I'll leave a comment here tomorrow if th= is repo is enough to reproduce the error, or if there are additional change= s I need to do to replicate the problem: [https://github.com/sondreb/cordov= a-wkwebview-bug](https://github.com/sondreb/cordova-wkwebview-bug) > WKWebViewEngine does not use CSP meta-tag, fails to load about:blank > -------------------------------------------------------------------- > > Key: CB-12566 > URL: https://issues.apache.org/jira/browse/CB-12566 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin WKWebViewEngine > Reporter: Sondre Bjell=C3=A5s > Assignee: Shazron Abdullah > > When adding the WKWebView plugin to a Cordova project, the CSP meta-tag i= n externally hosted HTML file is probably not used/parsed, or there is anot= her way to configure CSP for the plugin? > Have a working app using the default web view engine on iOS, when it is r= eplaced with the WKWebView, the app will log thousands of messages to the c= onsole. The error also results in Cordova runtime and plugins not being loa= ded and not working in the app. > The plugin is added with the following elements in config.xml: > > =09 > > > > To see this behavior, simply run the project in the simulator, and then d= ebug using Safari and connect to simulator. > Output in Web Inspect in Safari: > [blocked] The page at about:blank was not allowed to display insecure con= tent from gap://ready. > This is the current content of the CSP, have attempted many different var= iations with no success: > > (CSP header taken from this issue: https://github.com/driftyco/ionic/issu= es/6928) > The errors is not logged when the index.html within the app is loaded, bu= t appears when externally linked HTML is loaded. Redirect is done using Jav= aScript code that changes window.location.href. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org