Apache 网站设置X-Frame-Options 响应头

Apache

编辑目标配置文件  xxx.conf

添加  Header always append X-Frame-Options SAMEORIGIN

保存。

执行命令开启header模块(已开启忽略)

a2enmod headers

然后重启

service apache2 restart

猜你喜欢

转载自blog.csdn.net/qq_38157006/article/details/89952505