Content Security Policy
Last updated
Was this helpful?
Last updated
Was this helpful?
If your application uses Content Security Policy (CSP) to declare and restrict script execution, the Service Worker will not be loaded as expected.
Fortunately, you are able to pass attributes such as a nonce
to the script directive.
In the example below, the nonce attribute is managed by .