We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13a1ba1 commit 239b9f3Copy full SHA for 239b9f3
themes/api.jquery.com/functions.php
@@ -1,8 +1,10 @@
1
<?php
2
3
// Allow inline scripts and styles in API demos
4
+// Allow flickr script and images on https://api.jquery.com/jQuery.getJSON/
5
add_filter( 'jq_content_security_policy', function ( $policy ) {
- $policy[ 'script-src' ] = "'self' 'unsafe-inline' code.jquery.com";
6
+ $policy[ 'script-src' ] = "'self' 'unsafe-inline' code.jquery.com api.flickr.com";
7
$policy[ 'style-src' ] = "'self' 'unsafe-inline' code.jquery.com";
8
+ $policy[ 'img-src' ] = "'self' data: code.jquery.com live.staticflickr.com";
9
return $policy;
10
} );
0 commit comments