Skip to content

Commit 946b251

Browse files
authored
contribute.jquery.org: add CSP exception for vimeo player
Ref jquery/infrastructure-puppet#54 Ref jquery/contribute.jquery.org#151 Closes gh-472
1 parent 1eaa3fd commit 946b251

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
// Allow loading a Vimeo video on
4+
// https://local.contribute.jquery.org/markup-conventions/
5+
add_filter( 'jq_content_security_policy', function ( $policy ) {
6+
$policy[ 'frame-src' ] = "'self' player.vimeo.com";
7+
return $policy;
8+
} );

0 commit comments

Comments
 (0)