我想暂时删除X-Frame-Options: SAMEORIGIN
并且需要允许所有域。
我已经尝试了以下方法。
移除send_frame_options_header
从…起./wp-includes/default-filters.php
remove_action(\'login_init\', \'send_frame_options_header\');
/wp-includes/functions.php
PS:我也不使用任何安全插件。
我想暂时删除X-Frame-Options: SAMEORIGIN
并且需要允许所有域。
我已经尝试了以下方法。
移除send_frame_options_header
从…起./wp-includes/default-filters.php
remove_action(\'login_init\', \'send_frame_options_header\');
/wp-includes/functions.php
PS:我也不使用任何安全插件。
检查此问题How does wordpress restrict X-FRAME to sameorigin?.
提问者的问题通过修改其网站的解决。htaccess文件,在其Web主机设置X-Frame-Option时,将下面的一行添加到该文件中。
Header always unset X-Frame-Options
你可以检查一下这是否适合你。我的wp config create 命令:wp core config --dbname=wordpress --dbuser=wordpress --dbpass=\'this is not the real password\' 运行它:$ wp core config --dbname=wordpress --dbuser=wordpress --dbpass=\'this is not the real password\' ERROR 1045 (28000): Access