I have a domain at https://example.co.uk, and one at https:// chat.example.co.uk, both using service workers in production. When developing on localhost, I can use a service worker on the https://example.co.uk domain (on localhost:1337), but not when using the chat subdomain (on chat.localhost:1337), or any other subdomains.
This is not an issue on the live version, but it makes development quite difficult when working on the service workers' code.
Am I missing something important, or is there something I can do to allow the service worker to register anyway?
I tried turning the #allow-insecure-localhost Chrome flag on, but I don't think that was the problem.