spring boot + cors解決先後端跨域問題

先後端分離部署技術大致有幾種:jsonp,CORS,nginx反向代理,其中jsonp不支持post方法,具體說下CORS技術。javascript 前端請求代碼不變,用jquery.ajax()去請求html $.ajax({ url:"http://127.0.0.1:8080/user/login", type:'post', dataType : 'json',
相關文章
相關標籤/搜索