Commit b2dccdf0 authored by Anders Benjamin Clausen's avatar Anders Benjamin Clausen 👽
Browse files

Merge branch 'hotfix/https-persistence' into 'develop'

Now requestion /persistence/ on absolute URL - this should work over https as well - works locally

See merge request !25
parents 2d828bcb 3905a3f2
Pipeline #52481 passed with stages
in 2 minutes and 41 seconds
...@@ -41,9 +41,10 @@ import Calendar from "@/components/blocks/Calendar"; ...@@ -41,9 +41,10 @@ import Calendar from "@/components/blocks/Calendar";
const sendServerRequest = (type, payload) => { const sendServerRequest = (type, payload) => {
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
const url = "/persistence"; const url = window.location.href + "persistence";
const req = url + "?type=" + type + "&" + payload;
xhr.open("GET", url + "?type=" + type + "&" + payload); xhr.open("GET", req);
xhr.send(); xhr.send();
return xhr; return xhr;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment