由于CSP错误,Facebook登录无法在Firefox中使用

时间:2018-12-01 15:39:30

标签: facebook firefox nginx flask

我已经用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登录可在所有其他浏览器上运行,而Google登录可在所有浏览器(包括Firefox)上运行。

0 个答案:

没有答案