Skip to content

Commit 16621e9

Browse files
authored
All: add CSP exceptions for the wordpress admin
Closes gh-12
1 parent 57ec359 commit 16621e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jquery/functions.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,11 @@ function twentyeleven_content_security_policy() {
294294
// Allow inline styles for typekit
295295
'style-src' => "'self' 'unsafe-inline' code.jquery.com",
296296
// Leaving out typekit img-src, which only loads the p.gif for analytics
297-
'img-src' => "'self' code.jquery.com",
297+
// Allow data: images and gravatars for the wordpress admin
298+
'img-src' => "'self' data: secure.gravatar.com code.jquery.com",
298299
// Allow fonts from typekit
299-
'font-src' => "'self' use.typekit.net",
300+
// Allow data: fonts for the wordpress admin
301+
'font-src' => "'self' data: use.typekit.net",
300302
'object-src' => "'none'",
301303
'frame-ancestors' => "'none'",
302304
'block-all-mixed-content' => '',

0 commit comments

Comments
 (0)