workaround for cors issue

This commit is contained in:
Jordan Rodgers 2018-02-19 23:49:26 -05:00
parent f84b205f15
commit b05109af83

View file

@ -808,7 +808,7 @@ function hide_for_template(obj) {
$("#console-vm").click(function(){
const vmname = $(this).data('vmname');
const vmid = $(this).data('vmid');
fetch(`https://proxstar-vnc.csh.rit.edu/console/vm/${vmid}`, {
fetch(`/console/vm/${vmid}`, {
credentials: 'same-origin',
method: 'post'
}).then((response) => {