首页 > 代码库 > 通过配置文件修改X-Frame-Options

通过配置文件修改X-Frame-Options

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
<add name="X-Frame-Options" value="http://www.mamicode.com/SAMEORIGIN" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>

通过配置文件修改X-Frame-Options