Make WordPress Core


Ignore:
Timestamp:
05/24/2011 03:29:12 PM (13 years ago)
Author:
ryan
Message:

Send X-Frame-Options: SAMEORIGIN for admin and login pages. see #12293

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/wp-includes/functions.php

    r17517 r18013  
    44834483}
    44844484
     4485/**
     4486 * Send a HTTP header to limit rendering of pages to same origin iframes.
     4487 *
     4488 * @link https://developer.mozilla.org/en/the_x-frame-options_response_header
     4489 *
     4490 * @since 3.2.0
     4491 * @return none
     4492 */
     4493function send_frame_options_header() {
     4494    @header( 'X-Frame-Options: SAMEORIGIN' );
     4495}
     4496
    44854497?>
Note: See TracChangeset for help on using the changeset viewer.