Saturday, 25 September 2021

Is there a way to log asset load errors on non-async assets when using a CSP with nonces for scripts?

Because enabling use of nonces in CSP disables event handlers, it's not possible to add an onerror property to script tags to handle/report asset load issues.

Is there a recommended way to handle this? Particularly for script tags which are not loaded async.

Thanks!



from Is there a way to log asset load errors on non-async assets when using a CSP with nonces for scripts?

No comments:

Post a Comment