facebook - 由于 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。
解决方案
推荐阅读
- oracle - Spring data jpa从oracle数据库表中返回不一致的日期值
- python - 在python中,'import foo.bar as bar'和'from foo import bar'有什么区别?
- javascript - 从 Javascript 中删除文件和值
- javascript - React/TypeScript:我应该如何处理这种组件组合方式?
- bash - shell中的重定向警告不是错误或输出
- rtf - 想要在 10 次迭代后结束 RTF 模板 BI Publisher 中的 for 循环
- javascript - 有没有办法在单个 spa 项目中加载微型应用程序之前显示加载器
- javascript - iOS13.4.1 - XMLHTTPRequest 无法在 beforeunload / unload 事件处理程序中加载错误
- reactjs - 如何将 React 中的参数从函数传递到类
- reactjs - React:一旦状态更新,如何在数据表扩展中呈现数组?