Skip to content

Commit e64945a

Browse files
committed
Blogs: Allow jqueryui.com resources on blog.jqueryui.com in CSP
For example: https://blog.jqueryui.com/2009/06/jquery-ui-172/ Ref jquery/infrastructure-puppet#17
1 parent b767d65 commit e64945a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/jquery-filters.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@
111111
if ( get_option( 'jquery_is_blog' ) ) {
112112
// Allow <style> in blog posts
113113
$policy[ 'style-src' ] = "'self' 'unsafe-inline' code.jquery.com";
114-
// Allow re-use of blog post attachments between blog.jquery.com, blog.jqueryui.com, and blog.jquerymobile.com
115-
$policy[ 'img-src' ] = "'self' data: secure.gravatar.com code.jquery.com blog.jquery.com blog.jqueryui.com blog.jquerymobile.com";
114+
// Allow re-use of attachments between blog.jquery.com, blog.jqueryui.com, and blog.jquerymobile.com
115+
// Allow re-use of doc site resources from jqueryui.com in posts on blog.jqueryui.com
116+
$policy[ 'img-src' ] = "'self' data: secure.gravatar.com code.jquery.com jquery.com jqueryui.com jquerymobile.com blog.jquery.com blog.jqueryui.com blog.jquerymobile.com";
116117
// Allow Vimeo on blog.jquerymobile.com and other blogs
117118
$policy[ 'frame-src' ] = "'self' player.vimeo.com";
118119

0 commit comments

Comments
 (0)