Changeset 60657
- Timestamp:
- 08/23/2025 02:06:57 PM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r60416 r60657 7140 7140 * @since 3.1.3 7141 7141 * 7142 * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options 7142 * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Frame-Options 7143 * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors 7143 7144 */ 7144 7145 function send_frame_options_header() { 7145 header( 'X-Frame-Options: SAMEORIGIN' ); 7146 if ( ! headers_sent() ) { 7147 header( 'X-Frame-Options: SAMEORIGIN' ); 7148 header( "Content-Security-Policy: frame-ancestors 'self';" ); 7149 } 7146 7150 } 7147 7151
Note: See TracChangeset
for help on using the changeset viewer.