Skip to content

Commit

Permalink
Merge pull request #1266 from alphagov/fix-component-guide-inline-js-…
Browse files Browse the repository at this point in the history
…csp-hash

Fix component guide inline JS CSP hash
  • Loading branch information
rubenarakelyan authored Mar 1, 2019
2 parents a35b180 + e6aa661 commit f93283d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/csp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def self.build
# https://github.com/alphagov/govuk_template/blob/79340eb91ad8c4279d16da302765d0946d89b1ca/source/views/layouts/govuk_template.html.erb#L40
"'sha256-+6WnXIl4mbFTCARd8N3COQmT3bJJmo32N8q8ZSQAIcU='",

# The same as above but with leading whitespace as used by the component guide
"'sha256-+/sukrsYfvM/tHbNll4hTsl0mtvAQUFXZWdCg49lerI='",
# The same as above but with leading and trailing whitespace as used by the component guide
"'sha256-IWjjekDxqqURWMjVH447fuaAvoZKwpDwLS0ZdcJ+Ey4='",

# ALlow the script that removes `js-enabled` from body if there's an error
# https://github.com/alphagov/govuk_template/blob/79340eb91ad8c4279d16da302765d0946d89b1ca/source/views/layouts/govuk_template.html.erb#L112-L113
Expand Down

0 comments on commit f93283d

Please sign in to comment.