WP_Customize_Manager::filter_iframe_security_headers( array $headers )
Filter the X-Frame-Options and Content-Security-Policy headers to ensure frontend can load in customizer.
Description Description
Parameters Parameters
- $headers
-
(array) (Required) Headers.
Return Return
(array) Headers.
Source Source
File: wp-includes/class-wp-customize-manager.php
public function filter_iframe_security_headers( $headers ) { $headers['X-Frame-Options'] = 'SAMEORIGIN'; $headers['Content-Security-Policy'] = "frame-ancestors 'self'"; return $headers; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |