Web Security · Browser Security
Service worker scope
The URL prefix of clients a service worker registration can control. Its default and maximum are the script's directory unless the script response supplies a broader Service-Worker-Allowed path. A registration can request a narrower scope; a broad scope enlarges the controlled surface.