Skip to content

Commit

Permalink
Initializer no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Apr 5, 2021
1 parent e22779c commit 5c6ba14
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions guides/Content-Security-Policy.md
Expand Up @@ -30,12 +30,6 @@ class ChartsController < ApplicationController
end
```

And create an initializer with:

```rb
Chartkick.options[:nonce] = true
```

## Secure Headers

Configure CSP in `config/initializers/secure_headers.rb` with:
Expand Down Expand Up @@ -63,9 +57,3 @@ class ChartsController < ApplicationController
end
end
```

And create an initializer with:

```rb
Chartkick.options[:nonce] = true
```

0 comments on commit 5c6ba14

Please sign in to comment.