首页 > 解决方案 > 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

在此处输入图像描述

标签: phplaravelcookieslaravel-socialitesamesite

解决方案


我已经安装了fruitcake/laravel-cors,它得到了修复。由于从 5.8 升级到旧项目,我没有它。


推荐阅读