changed api call
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Malte Grosse 2024-02-01 11:24:16 +01:00
parent d7cb90a778
commit 84a7e3ec7b
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,12 @@ define(["jquery", "utils"], function ($, utils) {
"api",
utils.encode_uri_components(path),
);
var token = window.jhdata.xsrf_token
if (token) {
// add xsrf token to url parameter
var sep = url.indexOf("?") === -1 ? "?" : "&";
url = url + sep + "_xsrf=" + token;
}
$.ajax(url, options);
};