无法从chrome扩展向本机域发出post请求

2024-06-16 09:42:14 发布

您现在位置:Python中文网/ 问答频道 /正文

描述-我有一个网站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扩展”


Tags: comhttp邮递员网站requestwww错误content