]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
include credentials while making fetch calls
authorColin <mcclurec@gmail.com>
Wed, 11 Aug 2021 22:25:51 +0000 (15:25 -0700)
committerGitHub <noreply@github.com>
Wed, 11 Aug 2021 22:25:51 +0000 (15:25 -0700)
src/components/services/PiHole.vue

index 7042a7b2a5055662e7434bead008af4036a6e934..ce0b68928afffa11aad883e342afce099b58e420 100644 (file)
@@ -64,7 +64,9 @@ export default {
   methods: {
     fetchStatus: async function () {
       const url = `${this.item.url}/api.php`;
-      this.api = await fetch(url)
+      this.api = await fetch(url{
+        credentials: 'include'
+      })
         .then((response) => response.json())
         .catch((e) => console.log(e));
     },