Re: [w3c/ServiceWorker] How can I set allow-service-worker header on my sw.js file response ? (#1061)

I've closed this issue as it isn't related to the service worker spec, but I'll continue to provide support.

> How can I set service-worker-allowed header on my sw.js file response?

This depends on which backend you're using.

With apache/nginx, you use config files to add headers to particular paths. With express, you can set headers per response using `res.set(…)`. If you're using a static host such as S3, you need to set the headers at upload time.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1061#issuecomment-274434885

Received on Monday, 23 January 2017 09:14:43 UTC