Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master-1.3.x'
Browse files Browse the repository at this point in the history
# Conflicts:
#	core/http_api.php
  • Loading branch information
vboctor committed Aug 27, 2016
2 parents 7530384 + df605e1 commit 4e6b44d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/http_api.php
Expand Up @@ -229,6 +229,8 @@ function http_security_headers() {

http_csp_add( 'script-src', 'ajax.googleapis.com' );
http_csp_add( 'script-src', 'maxcdn.bootstrapcdn.com' );

http_csp_add( 'img-src', 'ajax.googleapis.com' );
}

# Relaxing policy for view issue page to allow inline scripts.
Expand All @@ -237,6 +239,11 @@ function http_security_headers() {
http_csp_add( 'script-src', "'unsafe-inline'" );
}

# The JS Calendar control does unsafe eval, remove once we upgrade the control (see #20040)
if( 'bug_update_page.php' == basename( $_SERVER['SCRIPT_NAME'] ) ) {
http_csp_add( 'script-src', "'unsafe-eval'" );
}

http_csp_emit_header();

if( http_is_protocol_https() ) {
Expand Down

0 comments on commit 4e6b44d

Please sign in to comment.