overhaul syntax highlighting and line numbering for large pastes

This commit is contained in:
2026-04-27 01:16:42 +02:00
parent 65dd4388b1
commit b516742529
9 changed files with 128 additions and 124 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ func securityHeadersMiddleware(next http.Handler) http.Handler {
w.Header().Set("Strict-Transport-Security", "max-age=63072000; includeSubDomains")
w.Header().Set("X-Content-Type-Options", "nosniff")
w.Header().Set("X-Frame-Options", "DENY")
w.Header().Set("Content-Security-Policy", "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'")
w.Header().Set("Content-Security-Policy", "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; worker-src 'self' blob:")
next.ServeHTTP(w, r)
})
}