File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 33require_once __DIR__ . '/functions.content.php ' ;
44
55// Allow inline scripts on https://jqueryui.com/themeroller/
6+ // Load scripts from download.jqueryui.com on https://jqueryui.com/download/
67// Load styles from download.jqueryui.com on https://jqueryui.com/themeroller/
78// Load images from download.jqueryui.com on https://jqueryui.com/themeroller/
9+ // Allow form actions to download.jqueryui.com on https://jqueryui.com/download/
810add_filter ( 'jq_content_security_policy ' , function ( $ policy ) {
11+ $ policy [ 'script-src ' ] = "'self' code.jquery.com download.jqueryui.com " ;
912 $ policy [ 'style-src ' ] = "'self' 'unsafe-inline' code.jquery.com download.jqueryui.com " ;
1013 $ policy [ 'img-src ' ] = "'self' data: code.jquery.com download.jqueryui.com " ;
14+ $ policy [ 'form-action ' ] = "'self' download.jqueryui.com " ;
1115 return $ policy ;
1216} );
You can’t perform that action at this time.
0 commit comments