File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 33// Allow inline scripts and styles in API demos
44add_filter ( 'jq_content_security_policy ' , function ( $ policy ) {
55 $ policy [ 'script-src ' ] = "'self' 'unsafe-inline' code.jquery.com " ;
6- $ policy [ 'style-src ' ] = "'self' 'unsafe-inline' " ;
6+ $ policy [ 'style-src ' ] = "'self' 'unsafe-inline' code.jquery.com " ;
77 return $ policy ;
88} );
Original file line number Diff line number Diff line change @@ -32,6 +32,6 @@ function jq_mobile_api_version_current() {
3232// Allow inline scripts and styles in API demos
3333add_filter ( 'jq_content_security_policy ' , function ( $ policy ) {
3434 $ policy [ 'script-src ' ] = "'self' 'unsafe-inline' code.jquery.com " ;
35- $ policy [ 'style-src ' ] = "'self' 'unsafe-inline' " ;
35+ $ policy [ 'style-src ' ] = "'self' 'unsafe-inline' code.jquery.com " ;
3636 return $ policy ;
3737} );
Original file line number Diff line number Diff line change @@ -28,6 +28,6 @@ function jq_ui_api_version_current() {
2828// Allow inline scripts and styles in API demos
2929add_filter ( 'jq_content_security_policy ' , function ( $ policy ) {
3030 $ policy [ 'script-src ' ] = "'self' 'unsafe-inline' code.jquery.com " ;
31- $ policy [ 'style-src ' ] = "'self' 'unsafe-inline' " ;
31+ $ policy [ 'style-src ' ] = "'self' 'unsafe-inline' code.jquery.com " ;
3232 return $ policy ;
3333} );
Original file line number Diff line number Diff line change @@ -265,9 +265,9 @@ function jq_content_security_policy() {
265265 'default-src ' => "'self' " ,
266266 'script-src ' => "'self' 'nonce- $ nonce' code.jquery.com " ,
267267 // The nonce is here so inline scripts can be used in the theme
268- 'style-src ' => "'self' 'nonce- $ nonce' " ,
268+ 'style-src ' => "'self' 'nonce- $ nonce' code.jquery.com " ,
269269 // data: SVG images are used in typesense
270- 'img-src ' => "'self' data: " ,
270+ 'img-src ' => "'self' data: code.jquery.com " ,
271271 'connect-src ' => "'self' typesense.jquery.com " ,
272272 'font-src ' => "'self' " ,
273273 'object-src ' => "'none' " ,
You can’t perform that action at this time.
0 commit comments