infi-nl / the-infi-way

How we like to build software
https://way.infi.nl
Other
9 stars 8 forks source link

Fix the Content-Security-Policy #93

Closed jeroenheijmans closed 11 months ago

jeroenheijmans commented 1 year ago

The meta tag containing the Content-Security-Policy got broken recently, because it's now this:

https://github.com/infi-nl/the-infi-way/blob/7df75da941be825c59d59c1190f3516d912b60a9/src/template.html#L11-L13

I think this commit accidentally triggered the problem?

Regardless, I'd like for it to return, since The Way shines the most if it's exemplary code itself 😊 Note that in the mean time the JavaScript code has changed, so the hash should also be generated once more. If that proves too troublesome after all, we could consider doing a CSP without one, or to move to a separate .js file via a script tag after all?