Skip to content

Commit

Permalink
contribute.jquery.org: add CSP exception for vimeo player
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Oct 20, 2024
1 parent 7273897 commit 4916cee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions themes/contribute.jquery.org/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

// Allow loading a Vimeo video on
// https://local.contribute.jquery.org/markup-conventions/
add_filter( 'jq_content_security_policy', function ( $policy ) {
$policy[ 'frame-src' ] = "'self' player.vimeo.com";
return $policy;
} );

0 comments on commit 4916cee

Please sign in to comment.