首页 > 解决方案 > 由于 CSP 错误,Facebook 登录无法在 Firefox 中运行

问题描述

我在 Python Flask 中开发了一个应用程序,并使用 Nginx 和 uWSGI 部署了它。在 Firefox Facebook 登录按钮的登录页面上未显示,我在控制台中收到一条警告消息:

Content Security Policy: Ignoring “'unsafe-inline'” within script-src: ‘strict-dynamic’ specified

Content Security Policy: Ignoring “https:” within script-src: ‘strict-dynamic’ specified

Content Security Policy: Ignoring “http:” within script-src: ‘strict-dynamic’ specified

我尝试使用Flask-CSP在 nginx 和烧瓶中设置 CSP 配置,但问题仍然存在。

Facebook 登录适用于所有其他浏览器,谷歌登录适用于所有浏览器,包括 Firefox。

标签: facebookfirefoxnginxflask

解决方案


推荐阅读