Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10324

Derive whitelist tags from CSP

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 4.0.1
    • None
    • None

    Description

      When dynamically creating an iframe, the iframe's src is never loaded. This worked without issues using 3.9.2.

      Example Code:

      i = document.createElement("iframe");
      i.src = "https://example.org";
      document.body.appendChild(i);
      

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            schm Gregor Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: