better_content_security_policy 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf8f11b55c77a23844ebd19428e56b42fa1ef3a4636137e7e61ab4bb6cfc5c24
|
4
|
+
data.tar.gz: dea5ebf55a0ec4985aacc0743dfda54fb81c5545cb4e7ae97df97d9d180d9feb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffcb4a396dbe92cc3ab86d1ee3a5903c9032cc2a54abdff127ac1590495519edaebc2f70938cb574b7149617cc473f52cc8693e6b3fbb0136856ac9c0fd7fd40
|
7
|
+
data.tar.gz: 1fe7607741267495f00c7f2077336241abe91ff5eedb740f409ffc8637ea9c324b85270de5e68a2eacaddb675c8e6de13cd4a3c638d64d6fb29c5fd6d1bc7ecf
|
data/Gemfile.lock
CHANGED
@@ -81,7 +81,8 @@ module BetterContentSecurityPolicy
|
|
81
81
|
|
82
82
|
kebab_source = kebab_case(dsl_source)
|
83
83
|
return "'#{kebab_source}'" if QUOTED_SOURCES.include?(kebab_source)
|
84
|
-
return "'#{dsl_source}'" if dsl_source.start_with?("nonce-")
|
84
|
+
return "'#{dsl_source}'" if dsl_source.start_with?("nonce-") ||
|
85
|
+
dsl_source.start_with?("sha256-")
|
85
86
|
|
86
87
|
dsl_source
|
87
88
|
end
|