phonegap / phonegap-app-stockpile

n. - A storage pile accumulated for future use
Apache License 2.0
4 stars 10 forks source link

Service worker registration is inline #8

Open devgeeks opened 6 years ago

devgeeks commented 6 years ago

It would be a lot better if we could have that registration src as a file so that we could remove 'unsafe-inline' from the CSP to protect from XSS, etc.

devgeeks commented 6 years ago

Another possibility would be creating a build time hash to allow the inline service worker.