diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2
index e0deeb70e3f8130cfdbd693523ee5de5f0d45403..ed6e81f4bc8431edb88fb787083d61f52a3d01fe 100644
--- a/templates/nginx.conf.j2
+++ b/templates/nginx.conf.j2
@@ -80,6 +80,7 @@ server {
         expires 30d;
         add_header Pragma public;
         add_header Cache-Control "public, must-revalidate, proxy-revalidate";
+        add_header Service-Worker-Allowed "/";
     }
 
     location /federation/ {