Make WordPress Core

Ticket #29429: 29429.diff

File 29429.diff, 450 bytes (added by killerbishop, 6 years ago)

Patch for 29429 - adds CSP frame-ancestors self policy

  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index a2070c1ec7..9cde35f954 100644
    a b function wp_find_hierarchy_loop_tortoise_hare( $callback, $start, $override = ar 
    58395839 */
    58405840function send_frame_options_header() {
    58415841        header( 'X-Frame-Options: SAMEORIGIN' );
     5842        header( 'Content-Security-Policy: frame-ancestors \'self\';' );
    58425843}
    58435844
    58445845/**