chromium/third_party/blink/web_tests/external/wpt/html/cross-origin-embedder-policy/resources/sw.js

self.addEventListener('activate', (e) => {
  e.waitUntil(clients.claim());
});

self.addEventListener('fetch', (e) => {
  const url = new URL(e.request.url);
  if (url.searchParams.has('passthrough')) {
    return;
  }

  e.respondWith(fetch(e.request));
});