Module leptos::nonce

source ·
Expand description

Utilities for exporting nonces to be used for a Content Security Policy.

Structs§

  • A nonce a cryptographic nonce (“number used once”) which can be used by Content Security Policy to determine whether or not a given resource will be allowed to load.

Functions§

  • Accesses the nonce that has been generated during the current server response. This can be added to inline <script> and <style> tags for compatibility with a Content Security Policy.