[ 
https://issues.apache.org/jira/browse/CB-10324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15093844#comment-15093844
 ] 

Gregor Schmidt commented on CB-10324:
-------------------------------------

I have just found the following error message in the log

{code}
HelloCordova[1851:2060211] ERROR Internal navigation rejected - 
<allow-navigation> not set for url='https://example.org/'
{code}

Adding {{<allow-navigation href="https:*" />}} to {{config.xml}} fixes the 
problem, but I was assuming, this rule would be derived from the CSP headers 
within the main html document.

> iframe created in JavaScript does not load
> ------------------------------------------
>
>                 Key: CB-10324
>                 URL: https://issues.apache.org/jira/browse/CB-10324
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 4.0.1
>            Reporter: Gregor Schmidt
>
> When dynamically creating an {{iframe}}, the {{iframe}}'s {{src}} is never 
> loaded. This worked without issues using 3.9.2.
> Example Code:
> {code:javascript}
> i = document.createElement("iframe");
> i.src = "https://example.org";;
> document.body.appendChild(i);
> {code}
> Please note, that you have to extend the {{Content-Security-Policy}} headers 
> to include {{https:}} to pass CSP restrictions.
> I have also created a sample project to reproduce the problem. You may find 
> it at https://github.com/schmidt/cordova-ios-iframe-example



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to