fetch("https://api.example.com/log", {
method: "POST",
mode: "no-cors",
body: data,
});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.
fetch("https://api.example.com/log", {
method: "POST",
mode: "no-cors",
body: data,
});