Conversation

Isn’t somebody working on a better solution for XSS that doesn’t require nonces/hashes? I vaguely remember an idea that uses JS modules + one <script src=loader.js> followed by <meta> CSP “script-src: none” to allow complex JS scenarios in a safe & easy way.
3
3
Replying to
Hashes for external assets are very natural since you already need them as a robust approach to caching. It's unfortunate that hash-source originally only supported it for inline scripts. It would be a great fit for static site generation if major browsers all supported that.
1
Replying to and
I don't currently see a way to do better than script-src 'self' or listing out the specific scripts included in the page if you feel like having per-page web server configuration. I don't really see much advantage to using hash-source rather than that but still wish I could.