luizdepra / hugo-coder

A minimalist blog theme for hugo.
MIT License
2.69k stars 1.06k forks source link

Remove prefetch-src from layouts/partials/csp.html. #881

Closed sammy44nts closed 8 months ago

sammy44nts commented 8 months ago

Describe the problem:

prefetch-src CSP is deprecated.

Steps to reproduce:

  1. Open the developer console in a recent web browser and you'll find the error message: Unrecognized Content-Security-Policy directive 'prefetch-src'.

How to fix this issue

Remove (delimit .Site.Params.csp.prefetchsrc " ") from layouts/partials/csp.html.

luizdepra commented 8 months ago

Nice. Easy fixing.

If anyone is willing to help with this one, please send a PR.