我已经用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)上运行。