diff --git a/websites/mswjs.io/src/content/docs/recipes/custom-worker-script-location.mdx b/websites/mswjs.io/src/content/docs/recipes/custom-worker-script-location.mdx index 08ef0968..ccade4cf 100644 --- a/websites/mswjs.io/src/content/docs/recipes/custom-worker-script-location.mdx +++ b/websites/mswjs.io/src/content/docs/recipes/custom-worker-script-location.mdx @@ -12,6 +12,10 @@ await worker.start({ // This is useful if your application follows // a strict directory structure. url: '/assets/mockServiceWorker.js', + options: { + // Required if you opt-in to Service-Worker-Allowed header + scope: "YOUR_TARGET_SCOPE", + }, }, }) ```