As it currently stands, the CSP is ineffective at preventing XSS issues due to having unsafe-inline and unsafe-eval in the script-src directive. The way to fix this would be to have all <script> tags have the nonce="" attribute that would then get injected inside of the quotes. This value has to be unique per request. As and idea of how to do it can be seen here https://cybermon.uk/posts/cloudflare_workers_pages_and_hugo/