為什么設(shè)置了允許跨域請(qǐng)求還是收不到opt驗(yàn)證碼
UserController文件加了注解@CrossOrigin(allowCredentials = "true", allowedHeaders = "*")
getopt文件加了
//允許跨域請(qǐng)求 xhrFields:{withCredentials:true},還是無法實(shí)現(xiàn)跨域請(qǐng)求收到驗(yàn)證碼,請(qǐng)指教,謝謝
UserController文件加了注解@CrossOrigin(allowCredentials = "true", allowedHeaders = "*")
getopt文件加了
//允許跨域請(qǐng)求 xhrFields:{withCredentials:true},還是無法實(shí)現(xiàn)跨域請(qǐng)求收到驗(yàn)證碼,請(qǐng)指教,謝謝
舉報(bào)
2020-06-03
我也出現(xiàn)了這個(gè)情況,經(jīng)過排查發(fā)現(xiàn),UserController中register里,獲取session的時(shí)候,應(yīng)該傳變量telephone,我傳的字符串“telephone”。。