From b05109af83efff3804240a31bd900d0da1b7da6c Mon Sep 17 00:00:00 2001 From: Jordan Rodgers Date: Mon, 19 Feb 2018 23:49:26 -0500 Subject: [PATCH] workaround for cors issue --- proxstar/static/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxstar/static/js/script.js b/proxstar/static/js/script.js index f30d53f..22f56fd 100644 --- a/proxstar/static/js/script.js +++ b/proxstar/static/js/script.js @@ -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) => {