Skip to content

Commit 318cea7

Browse files
committed
fixup! remove now unnecessary hash for typesense
1 parent ba38f36 commit 318cea7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

themes/jquery/functions.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,8 @@ function jq_content_security_policy() {
260260
$policy = array(
261261
'default-src' => "'self'",
262262
'script-src' => "'self' 'nonce-$nonce' code.jquery.com",
263-
// The SHA is for the inline style from typesense
264-
// 'unsafe-hashes' is required in order to use hashes in style-src
265-
'style-src' => "'self' 'nonce-$nonce' 'sha256-biLFinpqYMtWHmXfkA1BPeCY0/fNt46SAZ+BBk5YUog=' 'unsafe-hashes'",
263+
// The nonce is here so inline scripts can be used in the theme
264+
'style-src' => "'self' 'nonce-$nonce'",
266265
// data: SVG images are used in typesense
267266
'img-src' => "'self' data:",
268267
'connect-src' => "'self' typesense.jquery.com",

0 commit comments

Comments
 (0)