tication...");

    return fetch(url, {
        method: "HEAD",
    })
        .then((response) => {
            if (response.status >= 400) {
                return false;
            }

            console.debug("authentik/policies/buffer: Continuing");

            if ("{{ auth_req_method }}" === "post") {
                document.querySelector("form")?.submit();
                return true;
            }

            window.location.assign("{{ continue_url|escapejs }}");

            return true;
      