描述-我有一个网站www.robustest.com与http://robustestom.appspot.com结合。你知道吗
当我想从chrome扩展邮递员那里向/user/signup(robustest)发出post请求时,我遇到了以下错误
Request URL:http://robustest.com/user/signup
Request Method:POST
Status Code:301 Moved Permanently
**Response Header -**
Alternate-Protocol:80:quic
Content-Length:233
Content-Type:text/html; charset=UTF-8
Date:Mon, 30 Dec 2013 03:43:43 GMT
Location:http://www.robustest.com/user/signup
Server:ghs
X-Frame-Options:SAMEORIGIN
X-XSS-Protection:1; mode=block
但当我向http://robustestom.appspot.com/user/signup开火时,它的工作和预期一样。你知道吗
为什么我们需要-我们正在做一个扩展,在那里我们需要对我们的doamin后请求。你知道吗
调试-我可能错了,但似乎所有post请求都重定向到其计数器部分'GET',因为源代码不是'robustest.com但它是一个“chrome扩展”
301正在从robustest.com至www.robustest.com。将www添加到扩展正在向其发出请求的域中,301错误应该会消失。你知道吗
相关问题 更多 >
编程相关推荐