typescript - 如何解决 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.
解决方案
推荐阅读
- ruby - 有人可以帮我解决这个红宝石条件吗?
- c - 使用 pthread 从缓冲区写入和读取
- javascript - 如何使用 jquery 在 Cypress 测试中获取 div 'text' 值
- java - 在 Keystore 初始化期间,Java 无法读取存储在 Oracle Blob 列中的 .p12 文件
- ios - iOS 上的 Apollo 客户端和 Hasura 身份验证
- ssl - RabbitMQ MQTT SSL 连接失败
- javascript - 在 async.auto 链中使用 async / await 会导致 TypeError: callback is not a function
- architecture - 报价引擎 - 架构
- javascript - 如何在 JavaScript 中交织两个数组?
- python - 我怎么能在某些条件下获得 numpy 数组索引