Skip to content

Commit 0d7cb9e

Browse files
authored
jquerymobile.com: add frame-src CSP exceptions for mobile download builder
Fixes jquery/jquerymobile.com#179 Closes gh-479
1 parent 48a80ea commit 0d7cb9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

themes/jquerymobile.com/functions.php

+2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

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

0 commit comments

Comments
 (0)