File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -289,9 +289,14 @@ function twentyeleven_content_security_policy() {
289
289
$ report_url = 'https://csp-report-api.openjs-foundation.workers.dev/ ' ;
290
290
$ policy = array (
291
291
'default-src ' => "'self' " ,
292
- 'script-src ' => "'self' code.jquery.com " ,
293
- 'style-src ' => "'self' code.jquery.com " ,
292
+ // Allow scripts and inline scripts for typekit
293
+ 'script-src ' => "'self' 'unsafe-inline' code.jquery.com use.typekit.net " ,
294
+ // Allow inline styles for typekit
295
+ 'style-src ' => "'self' 'unsafe-inline' code.jquery.com " ,
296
+ // Leaving out typekit img-src, which only loads the p.gif for analytics
294
297
'img-src ' => "'self' code.jquery.com " ,
298
+ // Allow fonts from typekit
299
+ 'font-src ' => "'self' use.typekit.net " ,
295
300
'object-src ' => "'none' " ,
296
301
'frame-ancestors ' => "'none' " ,
297
302
'block-all-mixed-content ' => '' ,
You can’t perform that action at this time.
0 commit comments