mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-08 07:16:32 +00:00
spiceproxy: use POST instead of GET
using GET is a security risk (no CSRF checks)
This commit is contained in:
parent
787dec6ef2
commit
78252ce7d0
@ -1348,9 +1348,9 @@ __PACKAGE__->register_method({
|
|||||||
__PACKAGE__->register_method({
|
__PACKAGE__->register_method({
|
||||||
name => 'spiceproxy',
|
name => 'spiceproxy',
|
||||||
path => '{vmid}/spiceproxy',
|
path => '{vmid}/spiceproxy',
|
||||||
method => 'GET',
|
method => 'POST',
|
||||||
protected => 1,
|
protected => 1,
|
||||||
proxyto => 'node', # fixme: use direct connections or ssh tunnel?
|
proxyto => 'node',
|
||||||
permissions => {
|
permissions => {
|
||||||
check => ['perm', '/vms/{vmid}', [ 'VM.Console' ]],
|
check => ['perm', '/vms/{vmid}', [ 'VM.Console' ]],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user