React v17+Vite v5第三方Cookie阻止警告持续弹出求助
使用React v17和Vite v5开发时,控制台持续重复弹出以下警告:
"Third-party cookie will be blocked. Learn more in the Issues tab"
该警告每秒都会新增一条,截图如下:
项目的package.json依赖项如下:
"dependencies": { "@emotion/react": "^11.11.0", "@emotion/styled": "^11.11.0", "@googlemaps/react-wrapper": "^1.1.35", "@loadable/component": "^5.15.3", "@microsoft/signalr": "^7.0.4", "@mui/icons-material": "^5.11.16", "@mui/material": "^5.12.3", "@mui/x-date-pickers": "^6.8.0", "async-mutex": "^0.2.6", "axios": "^1.4.0", "fast-equals": "^4.0.3", "fbemitter": "^3.0.0", "formik": "^2.2.6", "html-to-image": "^1.9.0", "jspdf": "^2.5.1", "jspdf-autotable": "^3.5.25", "lodash": "^4.17.20", "moment": "~2.29.4", "notistack": "^3.0.1", "numeral": "^2.0.6", "oidc-client": "^1.10.1", "react": "^17.0.2", "react-dom": "^17.0.2", "react-imask": "6.4.3", "react-quill": "^2.0.0", "react-redux": "^7.1.3", "react-router": "5.1.2", "react-router-dom": "5.1.2", "react-virtualized-auto-sizer": "^1.0.6", "react-window": "^1.8.6", "react-window-infinite-loader": "^1.0.7", "redux": "4.0.4", "redux-oidc": "^3.1.7", "redux-thunk": "^2.3.0", "source-map-explorer": "^2.5.3", "uuid": "^8.3.2", "yup": "^1.2.0" }, "devDependencies": { "@babel/eslint-parser": "^7.21.8", "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@babel/preset-react": "^7.18.6", "@types/node": "^20.10.3", "@vitejs/plugin-react": "^4.2.0", "cross-env": "6.0.3", "dotenv-cli": "^5.1.0", "eslint": "^7.32.0", "eslint-plugin-flowtype": "^3.13.0", "eslint-plugin-import": "^2.24.2", "eslint-plugin-jsx-a11y": "6.4.1", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "prettier": "^2.4.1", "serve": "^13.0.2", "vite": "^5.0.5", "vite-plugin-eslint": "^1.8.1", "vite-plugin-svgr": "^4.2.0", "vitest": "^0.34.6" },
已经查看了浏览器DevTools的Issues标签页,但仍不清楚如何消除这个高频出现的警告,请求帮助解决。
内容的提问来源于stack exchange,提问作者Minh
相关产品推荐
相关产品推荐

