摘要:
localhost访问的对象所携带的session并不能用127.0.0.1去访问!
阅读全文
摘要:
beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{ AllowOrigins: []string{"http://*"}, AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"}, AllowHeader...
阅读全文
摘要:
var xhr = new XMLHttpRequest(); xhr.open('POST', 'http://localhost:8080/login'); xhr.send(null); xhr.onload = function(e) { var xhr = e.target; console.log(xhr.responseText); } 测试网站:http://www.jsz...
阅读全文