[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 06:56:00 EDT 2015


     [ https://issues.jboss.org/browse/JBIDE-20757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ilya Buziuk updated JBIDE-20757:
--------------------------------
    Description: 
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 

Basically the things with Livereload are getting even more weird.
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}

  was:
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 

Basically the things with Livereload are getting even more weird.
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 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
>    Affects Versions: 4.3.0.CR1
>            Reporter: Ilya Buziuk
>            Assignee: Ilya Buziuk
>             Fix For: 4.3.0.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 
> Basically the things with Livereload are getting even more weird.
> 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}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list