aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-08 02:58:07 -0800
committerFuwn <[email protected]>2022-03-08 02:58:07 -0800
commit8e8a2f79ff2a3e270c45233765ec1e4a5cbdc723 (patch)
tree1d52fda1bd9429c9651dea29ab0b469c74e8f287
parentfix(mixins): api url (diff)
downloadfrontend-8e8a2f79ff2a3e270c45233765ec1e4a5cbdc723.tar.xz
frontend-8e8a2f79ff2a3e270c45233765ec1e4a5cbdc723.zip
fix(mxixins): cors
-rw-r--r--src/mixins.ts3
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) => {