php - Laravel/Apple : cors 起源严格
问题描述
当我从社交名流苹果登录重定向时,它会显示上面的照片。这是一个跨源问题,但如何解决呢?
我不得不把它放在 session.php 中,因为我收到了这个警告:
Cookie “session” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite
解决方案
我已经安装了fruitcake/laravel-cors,它得到了修复。由于从 5.8 升级到旧项目,我没有它。
推荐阅读
- tensorflow - 在 Tensorflow 或 Keras 中运行 ML-Agent 训练的 Frozen Graph
- swift - NSCollectionViewCompositionalLayout 的自动布局问题
- java - 如何在 File 类中表示目录和文件?
- python - 如何在python中的循环内更改循环条件变量
- java - 如何维护maven依赖的版本?
- python - 为什么这段 Python 代码不将一个文件中的文本复制到另一个文件中?
- ios - 我的 AppCenter 失败并出现错误“在项目目录中找不到 `Podfile'”并且我的项目不使用 cocoapods
- android - 尝试使用 ionic cordova run android --device 时未找到设备/模拟器
- javascript - 如何在除一个 td 之外的 tr 上应用 onClick?
- firebase - 在下载之前覆盖firebase存储文件的名称?