Skip to content

Commit

Permalink
Fixed formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
klings committed Jun 6, 2017
1 parent 6ae578b commit e9f9c8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/nwebsec/Configuring-csp.rst
Expand Up @@ -209,8 +209,9 @@ Script and style nonces through HtmlHelpers
The :doc:`NWebsec.Mvc` package includes HtmlHelpers to add CSP 2 script and style nonces to allow inline scripts/styles. The helpers will output the complete nonce-attribute. Here is an example of usage:

.. code-block:: html

@using NWebsec.Mvc.HttpHeaders.Csp

<script @Html.CspScriptNonce()>document.write("Hello world")</script>
<style @Html.CspStyleNonce()>
h1 {
Expand Down

0 comments on commit e9f9c8d

Please sign in to comment.