Update Ping.vue

This commit is contained in:
Colin 2021-08-11 15:38:24 -07:00 committed by GitHub
parent cf2fb08dc7
commit 76a46c3507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,11 @@ export default {
methods: { methods: {
fetchStatus: async function () { fetchStatus: async function () {
const url = `${this.item.url}`; const url = `${this.item.url}`;
fetch(url, { method: "HEAD", cache: "no-cache" }) fetch(url, {
method: "HEAD",
cache: "no-cache",
credentials: "include",
})
.then((response) => { .then((response) => {
if (!response.ok) { if (!response.ok) {
throw Error(response.statusText); throw Error(response.statusText);