eyeos / spice-web-client

A full featured and high performance SPICE web client written in Javascript and HTML5
MIT License
290 stars 104 forks source link

Chrome browser security associated issue #43

Open taechonkim opened 4 years ago

taechonkim commented 4 years ago

Hi, I'm interested in using spice-web-client.

eyeOS spice-web-client works well on Edge, firefox, even if IE.

But when I execute it on Chrome, it got errors described below. (My chrome version is 77.0.3865.120)

  1. Uncaught DOMException: Failed to construct 'Worker' : Script at '.../spice-web-client/application/WorkerProcess.js' cannot be accessed from origin 'null'.
  2. Uncaught TypeError: Cannot read property 'processors' of undefined at f.onStartAudio (application.js:307)
  3. Uncaught TypeError: Cannot read property '0' of null at f.executeExternalCallback (application.js:328)

I searched about 1st error, I figured out it is associated with chrome security policy. As solutions I found, I executed Chrome through console with '--allow-file-access-from-files' flag, then finally spice-web-client works well. But I'm curious about being another simple solution.

Do you know how to execute spice-web-client on Chrome simply?

I would appreciate your reply. :-)

Below is my environment description.

Host: Ubuntu 16.04 + qemu-kvm Guest: Windows Desktop 10 + spice agent tools (for QXL supports) Client: Windows Desktop 10 + Chrome (same problem as edge, IE, firefox)