How to add csp, x

编程入门 行业动态 更新时间:2024-10-05 13:25:28

How to <a href=https://www.elefans.com/category/jswz/34/1767684.html style=add csp, x"/>

How to add csp, x

我们正在为我的 React 应用程序使用 Azure 应用程序服务。我们正在从 azure 应用程序服务(应用程序服务使用 nodejs 14)提供反应构建工件。我想在这里

add content-security-policy header in web.config file.
Add x-frame-option - sameorigin
Remove x-powered-by: express header

但是在

web.config
文件中修改后没有反映到应用服务配置中。我该怎么办?

我的 web.config 文件

<configuration>
    <system.webServer>
        <httpProtocol>
            <customHeaders>
                <add name="X-Frame-Options" value="SAMEORIGIN"/>
                <add name="Content-Security-Policy" value=".." />
                <remove name="X-Powered-By" />                          
            </customHeaders>
        </httpProtocol>
    </system.webServer>
</configuration>
回答如下:

更多推荐

How to add csp, x

本文发布于:2024-05-28 12:00:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1770139.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:add   csp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!