Angular 7 configure x-frame-options in localhost IIS Express

[亡魂溺海] 提交于 2021-01-29 16:11:12

问题


  • Angular Version - 7.2
  • Environment - localhost
  • IDE - Visual Studio Code
  • Browser - Chrome
  • Localhost Web Server - Express

I have project built in angular framework and it is running with Express web-server in my localhost. I added the x-frame-options in the web.config but it is not showing up in the webpage response header.

I want to test this change in the app running in localhost. Please suggest, how can i view this property in the response headers.

Web.config code changes :-

       <httpProtocol>
        <customHeaders>
            <add name="X-Frame-Options" value="SAMEORIGIN" />
        </customHeaders>
       </httpProtocol>
    </system.webServer>
</configuration>

来源:https://stackoverflow.com/questions/61728673/angular-7-configure-x-frame-options-in-localhost-iis-express

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!