共享session問題
controller中 @CrossOrigin(allowCredentials?=?"true",?allowedHeaders?=?"*")
html中
contentType:"application/x-www-form-urlencoded",
xhrFields:{withCredentials:true},
確認在getotp中session設(shè)置成功,在register中取對應(yīng)的session為null
瀏覽器中Access-Control-Allow-Origin:null
請問老師該如何調(diào)查和解決?
2019-03-05
在ajax里面加了xhrFields:{withCredentials:true},也沒有用
2019-01-31
你好,我和你有同樣的問題,請問怎么怎樣詳細解決的?我的訪問url就是url:"http://localhost:8090/user/getotp",
2019-01-30
我把訪問地址 由ip換成localhost就好用了...