Skip to content

Commit

Permalink
✨ added default frontend nonce at site-object
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Feb 8, 2020
1 parent c06bb61 commit dc4465f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/SecurityHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function load($data = null): CSPBuilder

// add nonce for self
if ($self = $this->option('seed')) {
$nonce = $this->getNonce((string) $self);
$nonce = $this->setNonce((string) $self);
$this->cspBuilder->nonce('script-src', $nonce);
$this->cspBuilder->nonce('style-src', $nonce);
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-security-headers",
"type": "kirby-plugin",
"version": "2.2.1",
"version": "2.2.2",
"license": "MIT",
"description": "Kirby 3 Plugin for easier Security Headers setup",
"authors": [
Expand Down

0 comments on commit dc4465f

Please sign in to comment.