You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jan Piotrowski (janpio) (JIRA)" <ji...@apache.org> on 2019/07/05 13:19:00 UTC

[jira] [Closed] (CB-12669) cordova.js contains inline script on windows - CSP violation, potentially insecure

     [ https://issues.apache.org/jira/browse/CB-12669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Piotrowski (janpio) closed CB-12669.
----------------------------------------
    Resolution: Auto Closed

If this is still a problem, please recreate the issue over at [https://github.com/apache/cordova-windows.] Thanks.
 

> cordova.js contains inline script on windows - CSP violation, potentially insecure
> ----------------------------------------------------------------------------------
>
>                 Key: CB-12669
>                 URL: https://issues.apache.org/jira/browse/CB-12669
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-windows
>         Environment: cordova: 6.5.0
> cordova-windows: 4.4.3
> cordova-android 6.1.2
> cordova-ios 4.3.1
>            Reporter: Michael Schmidt
>            Priority: Major
>
> Including the cordova script seems to cause a CSP violation on windows:
> with 
> {code}
>   <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-eval';">
>   <script src="cordova.js"></script>
> {code}
> the following error message appears on the Windows platform:
> {code}
> CSP14312: Resource violated directive 'script-src 'self' 'unsafe-eval'' in <meta http-equiv="Content-Security-Policy">: inline script. Resource will be blocked.
> {code}
> this message disappears on commenting the cordova.js script tag out
> The same source code works on the other platform iOS & Android without a problem, i.e. the cordova.js seems to have problematic windows-specific code.
> For security reasons we don't want to add the "unsafe-inline" flag to the csp.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org