试图在Cordova应用程序中调用localhost URL,我得到了以下错误
A cookie associated with a cross-site resource at http://local_ip/ was set without the `SameSite`
attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are
set with `SameSite=None` and `Secure`. You can review cookies in developer tools under
Application>Storage>Cookies and see more details at
https://www.chromestatus.com/feature/5088147346030592 and
https://www.chromestatus.com/feature/5633521622188032.与此错误
Resource interpreted as Document but transferred with MIME type application/vnd.ms-excel:
"http://local_ip:8083/api/getMailReport? reportType=MU&surId=SUR00002&selectedFromDate=05%2F11%2F2019&selectedToDate=11%2F11%2F2019&lang=E&gener
ateReport=Generate+Report".如何克服这个问题
发布于 2019-11-19 00:52:53
Chrome将改变其在Chrome 80中的行为,以适用两条新规则:
在默认情况下,没有SameSite=None; Secure.属性的
SameSite=Lax,也就是说,它们将是只用于第三方或跨站点使用的SameSite=Lax。控制台警告只是通知您,您将需要添加相关属性到您的cookie取决于您的网站需要什么样的行为。
有关更多信息,您可以看到https://web.dev/samesite-cookies-explained和https://web.dev/samesite-cookie-recipes。
https://stackoverflow.com/questions/58909271
复制相似问题