Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 48adc0f

Browse files
committed
Show error due to CORS
1 parent 0c5ba75 commit 48adc0f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/components/Feed.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ export default {
7676
this.loading = false;
7777
}
7878
} catch (e) {
79-
this.error = e.toString();
79+
if (e.toString() === "TypeError: Failed to fetch") {
80+
this.error = "Error due to CORS policy";
81+
} else {
82+
this.error = e.toString();
83+
}
8084
this.loading = false;
8185
}
8286
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /