#566 [MEDIUM] security_headers.py CSP nonce generated but unused

open medium Created 2025-12-17 16:32 · Updated 2025-12-17 16:32

Description

Edit
CSP nonce is generated on every request but never actually used in responses. This is wasted computation. Options: 1) Remove nonce generation if not needed 2) Actually use nonce in script-src directive 3) Make nonce generation lazy.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...