Skip to content

Commit

Permalink
New CORS error in the explain console error demo page
Browse files Browse the repository at this point in the history
  • Loading branch information
captainbrosset committed Dec 6, 2023
1 parent f9d3017 commit 071b05c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions devtools-explain-error/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,14 @@ <h1>Explain console errors in Bing Chat</h1>
new Date("2014-25-23").toISOString();
`
},

{
error: "Access to fetch at '...' from origin '...' has been blocked by CORS policy",
note: "Trying to access a resource from a different origin, but the server doesn't allow it.",
code: `
fetch("https://www.microsoft.com/");
`
}
];

const testCasesEl = document.querySelector(".test-cases");
Expand Down

0 comments on commit 071b05c

Please sign in to comment.