Skip to content

Commit

Permalink
Merge pull request #3569 from evertmulder/Fixed-CSP-for-WebMKS-Console
Browse files Browse the repository at this point in the history
Fixed CSP for webmks Console
(cherry picked from commit fadeca0)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1558610
  • Loading branch information
mzazrivec authored and simaishi committed Mar 20, 2018
1 parent c8290fe commit 4fbe8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/vm_remote.rb
Expand Up @@ -28,7 +28,7 @@ def launch_vmware_console
options = case console_type
when "webmks"
# TODO: move this part to the launch_html5_console method
override_content_security_policy_directives(:connect_src => ["'self'", websocket_origin], :img_src => %w(data: self))
override_content_security_policy_directives(:connect_src => ["'self'", websocket_origin], :img_src => %w(data: 'self'))
%i(secret url).each { |p| params.require(p) }
@console = {
:url => j(params[:url]),
Expand Down

0 comments on commit 4fbe8f0

Please sign in to comment.