diff options
| author | Fuwn <[email protected]> | 2022-03-08 02:58:07 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-08 02:58:07 -0800 |
| commit | 8e8a2f79ff2a3e270c45233765ec1e4a5cbdc723 (patch) | |
| tree | 1d52fda1bd9429c9651dea29ab0b469c74e8f287 /src | |
| parent | fix(mixins): api url (diff) | |
| download | frontend-8e8a2f79ff2a3e270c45233765ec1e4a5cbdc723.tar.xz frontend-8e8a2f79ff2a3e270c45233765ec1e4a5cbdc723.zip | |
fix(mxixins): cors
Diffstat (limited to 'src')
| -rw-r--r-- | src/mixins.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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<void> { 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<void> { 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<void> { fetch(`${this.baseUrl}/random`, { method: 'GET', + mode: 'no-cors', }) .then((response) => response.json()) .then((response) => { |