首页 > 解决方案 > 如何解决 nuxt 中的这些 cookie 相关警告?

问题描述

我在浏览器中遇到的这些错误是什么?我该如何解决?我正在使用带有打字稿的 nuxt 并cookie-universal-nuxt用于存储身份验证令牌。

Cookie “exp_last_visit” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/4.js” because the scheme does not match. 4.js
Cookie “exp_last_activity” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/4.js” because the scheme does not match. 4.js
Cookie “exp_csrf_token” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/4.js” because the scheme does not match. 4.js
Cookie “__stripe_sid” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/4.js” because the scheme does not match. 4.js
Cookie “__stripe_mid” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/4.js” because the scheme does not match. 4.js
Cookie “XSRF-TOKEN” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/4.js” because the scheme does not match. 4.js
Cookie “laravel_session” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/4.js” because the scheme does not match. 4.js
Cookie “exp_last_visit” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/3.js” because the scheme does not match. 3.js
Cookie “exp_last_activity” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/3.js” because the scheme does not match. 3.js
Cookie “exp_csrf_token” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/3.js” because the scheme does not match. 3.js
Cookie “__stripe_sid” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/3.js” because the scheme does not match. 3.js
Cookie “__stripe_mid” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/3.js” because the scheme does not match. 3.js
Cookie “XSRF-TOKEN” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/3.js” because the scheme does not match. 3.js
Cookie “laravel_session” will be soon treated as cross-site cookie against “http://ts-nuxt.pv/_nuxt/3.js” because the scheme does not match.

标签: typescriptnuxt.js

解决方案


推荐阅读