MDN self-hosted library · e01.org
CORS errors / notebook

CORS errors

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
fetch("https://api.example.com/log", {
  method: "POST",
  mode: "no-cors",
  body: data,
});
js
fetch("https://api.example.com/log", {
  method: "POST",
  mode: "no-cors",
  body: data,
});