mufeedvh / binserve

A fast production-ready static web server with TLS (HTTPS), routing, hot reloading, caching, templating, and security in a single-binary you can set up with zero code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhacement: Nonce generation for Content Security Policy (CSP)

danmx opened this issue · comments

Supporting nonce generation for Contenct Security Policy (CSP) HTTP header would greatly help boost defence against contect injection.

Hey @danmx, that's a good feature but it isn't required in our case because binserve is completely static and no user input can be injected or received. The template variables can be used as an input with external scripts to update it but those are escaped by Handlebars which prevents the possibilities for XSS and Content Injection. 👍