天天看點

Springboot 前端請求的每次sessionid 都不同

1. 先檢測浏覽器是否有設定禁止儲存第三方cookie資訊

2.跨域問題處理

一般出現跨域問題,就是因為前後端分離導緻的。

前端代碼:

vue:

axios.defaults.withCredentials = true;