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

Ilya Borisov commented on IGNITE-8962:
--------------------------------------

The issue is caused by content security policy violation, no idea why this 
didn't happen before. To fix it, change webpack dev server headers to:
{code:javascript}
headers: {
 'Content-Security-Policy': `worker-src 'self' blob:; script-src 'self' 
'unsafe-inline' 'unsafe-eval' data: http: https:`
 },{code}
[~vsisko] please check that the same doesn't happen when wev console is served 
by nginx (i.e. from docker).

> Web console: Failed to load blob on configuration pages
> -------------------------------------------------------
>
>                 Key: IGNITE-8962
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8962
>             Project: Ignite
>          Issue Type: Bug
>          Components: wizards
>    Affects Versions: 2.7
>            Reporter: Vasiliy Sisko
>            Priority: Major
>
> On opening *Advanced* tab of cluster configuration in log printed several 
> messages:
> {code:java}
> Refused to create a worker from 
> 'blob:http://localhost:9000/171b5d08-5d9a-4966-98ba-a0649cc433ab' because it 
> violates the following Content Security Policy directive: "script-src 'self' 
> 'unsafe-inline' 'unsafe-eval' data: http: https:". Note that 'worker-src' was 
> not explicitly set, so 'script-src' is used as a fallback.
> WorkerClient  @       index.js:16810
>       createWorker    @       xml.js:647
>       $startWorker    @       index.js:9120{code}
> and
> {code:java}
> Could not load worker DOMException: Failed to construct 'Worker': Access to 
> the script at 
> 'blob:http://localhost:9000/639cb195-acb1-4080-8983-91ca55f5b588' is denied 
> by the document's Content Security Policy.
>     at new WorkerClient 
> (http://localhost:9000/vendors~app.df60bff111cc62fe15ec.js:114712:28)
>     at Mode.createWorker 
> (http://localhost:9000/vendors~app.df60bff111cc62fe15ec.js:119990:22)
>     at EditSession.$startWorker 
> (http://localhost:9000/vendors~app.df60bff111cc62fe15ec.js:107022:39)
>     at EditSession.$onChangeMode 
> (http://localhost:9000/vendors~app.df60bff111cc62fe15ec.js:106978:18)
>     at EditSession.setMode 
> (http://localhost:9000/vendors~app.df60bff111cc62fe15ec.js:106943:18)
>     at setOptions (http://localhost:9000/app.9504b7da2e0719a61777.js:28327:59)
>     at updateOptions 
> (http://localhost:9000/app.9504b7da2e0719a61777.js:28498:17)
>     at Object.link 
> (http://localhost:9000/app.9504b7da2e0719a61777.js:28505:13)
>     at http://localhost:9000/vendors~app.df60bff111cc62fe15ec.js:61725:18
>     at invokeLinkFn 
> (http://localhost:9000/vendors~app.df60bff111cc62fe15ec.js:70885:9)
> warn  @       index.js:3532
>       $startWorker    @       index.js:9122
>       $onChangeMode   @       index.js:9076{code}



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

Reply via email to