From 8e8a2f79ff2a3e270c45233765ec1e4a5cbdc723 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 8 Mar 2022 02:58:07 -0800 Subject: fix(mxixins): cors --- src/mixins.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/mixins.ts b/src/mixins.ts index 0f062d6..3967d8d 100644 --- a/src/mixins.ts +++ b/src/mixins.ts @@ -17,6 +17,7 @@ export default class APIExtendableLanguage extends Vue { async fetchImages(): Promise { fetch(`${this.baseUrl}/language/${this.language}`, { method: 'GET', + mode: 'no-cors', }) .then((response) => response.json()) .then((response) => { @@ -28,6 +29,7 @@ export default class APIExtendableLanguage extends Vue { async fetchLanguages(): Promise { fetch(`${this.baseUrl}/languages`, { method: 'GET', + mode: 'no-cors', }) .then((response) => response.json()) .then((response) => { @@ -39,6 +41,7 @@ export default class APIExtendableLanguage extends Vue { async fetchRandom(): Promise { fetch(`${this.baseUrl}/random`, { method: 'GET', + mode: 'no-cors', }) .then((response) => response.json()) .then((response) => { -- cgit v1.2.3