[jbosstools-issues] [JBoss JIRA] (JBIDE-20757) Livereload does not work with CordovaSim on default THYM project
Ilya Buziuk (JIRA)
issues at jboss.org
Tue Sep 22 12:21:00 EDT 2015
[ https://issues.jboss.org/browse/JBIDE-20757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13111366#comment-13111366 ]
Ilya Buziuk commented on JBIDE-20757:
-------------------------------------
PR for FAQ - https://github.com/jbosstools/jbosstools-website/pull/487
> Livereload does not work with CordovaSim on default THYM project
> ----------------------------------------------------------------
>
> Key: JBIDE-20757
> URL: https://issues.jboss.org/browse/JBIDE-20757
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: aerogear-hybrid, cordovasim, livereload, upstream
> Affects Versions: 4.3.0.CR1
> Reporter: Ilya Buziuk
> Assignee: Ilya Buziuk
> Fix For: 4.3.1.Final
>
>
> Steps to reproduce:
> 1) create default THYM project
> 2) enable Livereload server
> 3) run THYM project on CordovaSim
> 4) edit index.html and save changes
> ERROR: refresh is not happening on Cordovasim
> In order to make it work one nee to remove the following meta tag from index.html:
> {code}
> <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
> {code}
> Livereload doesn't work with new THYM projects due to new cordova-white-list plugin security policy - https://github.com/apache/cordova-plugin-whitelist/blob/master/README.md#content-security-policy . The following error prevent script loading
> {code}
> Refused to load the script 'http://localhost:35729/livereload.js' because it violates the following Content Security Policy directive: "default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
> {code}
> BTW, We are not the only one affected by this changes - http://forum.ionicframework.com/t/solution-for-livereload-problems-with-new-csp-rules/25449
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list