Search completed in 1.77 seconds.
3 results for "Service-Worker-Allowed":
ServiceWorkerContainer.register() - Web APIs
WebAPIServiceWorkerContainerregister
ally navigator.serviceworker.register('/sw.js', {scope: '/product/'}).then(function(registration) { console.log('service worker registration succeeded:', registration); }, /*catch*/ function(error) { console.log('service worker registration failed:', error); }); } else { console.log('service workers are not supported.'); } however, servers can remove this restriction by setting a service-worker-allowed header on the service worker script, and then you can specify a max scope for that service worker above the service worker's location.
Using Service Workers - Web APIs
WebAPIService Worker APIUsing Service Workers
if your service worker is active on a client being served with the service-worker-allowed header, you can specify a list of max scopes for that worker.
HTTP headers - HTTP
WebHTTPHeaders
service-worker-allowed used to remove the path restriction by including this header in the response of the service worker script.