Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions themes/jquerymobile.com/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

// Allow scripts from cdnjs.cloudflare.com for the download builder
// Allow connections to the amd builder subdomain for the download builder
// Allow frames from amd-builder.jquerymobile.com for the download builder
add_filter( 'jq_content_security_policy', function ( $policy ) {
$policy[ 'script-src' ] = "'self' code.jquery.com cdnjs.cloudflare.com";
$policy[ 'connect-src' ] = "'self' typesense.jquery.com *.jquerymobile.com";
$policy[ 'frame-src' ] = "'self' *.jquerymobile.com";
return $policy;
} );