Cross-domain cookie cannot be obtained for vue project

my colleague in the background gave me a host
10.168.100.192 cms.api.xxx.com / / interface written casually to indicate

.

I changed the local host file.

created the project locally with vue cli and modified a proxy, so you can now cross-domain the interface.

dev: {

// Paths
assetsSubDirectory: "static",
assetsPublicPath: "/",
proxyTable: {
  "/api": {
      target: "cms.api.xxx.com",
      secure: false,  
      changeOrigin: true,
      pathRewrite: {
        "^/api": "/api"
      }
  }
}

but do you need to modify any configuration if you can"t get the cookie, on the page?
use chrome to see nothing in cookie.
clipboard.png

Sep.05,2021

take a look at . I hope it will be helpful to you.

Menu