Challenge 1
The flag that lets the request outlive the page.
await fetch(url, {
method: 'POST',
body,
: true,
});
Press Ctrl⌘Enter to check your answer
Fill in the missing superset flags — and the guarantee it still cannot give you.
Challenge 1
await fetch(url, {
method: 'POST',
body,
: true,
});
Press Ctrl⌘Enter to check your answer
Challenge 2
await fetch(url, {
method: 'POST',
body,
keepalive: true,
headers: { '': `Bearer ${token}` },
});
Press Ctrl⌘Enter to check your answer
Challenge 3
await fetch(url, {
method: 'POST',
body,
keepalive: true,
credentials: '',
});
Press Ctrl⌘Enter to check your answer
Challenge 4
const res = await fetch(url, { method: 'POST', body, keepalive: true });
if (!res.) throw new Error(`collector said ${res.status}`);
Press Ctrl⌘Enter to check your answer
Challenge 5
// fetch(keepalive) MAY outlive the page, but only sendBeacon
// carries the spec's on the hidden transition.
Press Ctrl⌘Enter to check your answer