内容安全政策Firebase


日耀九洲
2025-04-16 10:35:42 (1天前)


我遇到了CSP和Firebase的问题。在我的index.html中,我包括以下内容:

< meta http-equiv =“Content-

安全
</跨度>
-

政策
</跨度>

content =“style-src’self’; script-src’self’https

我在控制台中仍然遇到一些错误。

内容

安全
</跨度>

政策
</跨度>
:页面的设置阻止了加载
资源在自己(“script-src http:// server https://cdn.firebase.com
https

2 条回复
  1. 0# 一号位 | 2019-08-31 10-32



    我在Ionic中面临同样的问题,除了linsk之外,我还在script-src中添加了’unsafe-inline’’unsafe-eval’。它对我有用。如果我们为您的请求做出示例:




    1. </code>

登录 后才能参与评论