From 89a559a2ffc81642798faa9930f9858b5a24912b Mon Sep 17 00:00:00 2001 From: paklong Date: Sat, 25 Jan 2025 12:20:00 -0800 Subject: [PATCH] fix(example): update fetch example to demonstrate "Cross-Origin Request Blocked" error - Replaced `http` with `https` in the example URL to trigger "Cross-Origin Request Blocked." --- 5-network/05-fetch-crossorigin/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5-network/05-fetch-crossorigin/article.md b/5-network/05-fetch-crossorigin/article.md index 4420f43c77..0fe11f692f 100644 --- a/5-network/05-fetch-crossorigin/article.md +++ b/5-network/05-fetch-crossorigin/article.md @@ -6,7 +6,7 @@ For instance, let's try fetching `http://example.com`: ```js run async try { - await fetch('http://example.com'); + await fetch('https://example.com'); } catch(err) { alert(err); // Failed to fetch }