为什么会出现#34;响应标头的差异#34;从两个不同的服务器?

时间:2015-01-19 08:20:32

标签: rest header response content-type

来自服务器1的响应标头



Access-Control-Allow-Head...	Content-Type
Access-Control-Allow-Meth...	GET, POST, DELETE, PUT
Content-Length	649
Content-Type	application/json
Expires	Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie	cmx-token=TKFqbwbCuPzKaxSu1aqu9+QnW2AJTvOooUzmMGg2TYQ=;Path=/
X-TOTAL-EXECUTION-TIME	0
access-control-allow-orig...	*
view source
Accept	application/json, text/javascript, */*; q=0.01
Accept-Encoding	gzip, deflate
Accept-Language	en-US,en;q=0.5
Cookie	_ga=GA1.1.1917656998.1416163342; cmx-token=TKFqbwbCuPzKaxSu1aqu9+QnW2AJTvOol2qKvN85gLY=; cmx.user=%7B%22id%22%3Anull%2C%22username%22%3A%22admin%22%2C%22password%22%3Anull%2C%22sessionId%22%3Anull%2C%22loggedIn%22%3Atrue%2C%22remember%22%3Afalse%2C%22userGroups%22%3A%5B%5D%2C%22roles%22%3A%5B%5D%2C%22loginData%22%3Anull%7D; usageStatistics=%7B%22consent%22%3Afalse%2C%22lastConsentDate%22%3A1421653154045%7D
Host	172.19.35.217
Referer	http://172.19.35.217/manage/
User-Agent	Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
X-Requested-With	XMLHttpRequest




服务器2的响应标头



Access-Control-Allow-Head...	Content-Type
Access-Control-Allow-Meth...	GET, POST, DELETE, PUT
Content-Length	18
Set-Cookie	cmx-token=TKFqbwbCuPzIojRpj8Q+EOQnW2AJTvOobh5OPVbQTYM=;Path=/
X-TOTAL-EXECUTION-TIME	0
access-control-allow-orig...	*
view source
Accept	application/json, text/javascript, */*; q=0.01
Accept-Encoding	gzip, deflate
Accept-Language	en-US,en;q=0.5
Cookie	_ga=GA1.1.149330011.1415357352; cmx-token=TKFqbwbCuPzIojRpj8Q+EOQnW2AJTvOoTbX4WoGo39w=; cmx.user=%7B%22id%22%3Anull%2C%22username%22%3A%22admin%22%2C%22password%22%3Anull%2C%22sessionId%22%3Anull%2C%22loggedIn%22%3Atrue%2C%22remember%22%3Afalse%2C%22userGroups%22%3A%5B%5D%2C%22roles%22%3A%5B%5D%2C%22loginData%22%3Anull%7D; usageStatistics=%7B%22consent%22%3Afalse%2C%22lastConsentDate%22%3A1421652985433%7D
Host	172.19.35.186
Referer	http://172.19.35.186/manage/
User-Agent	Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
X-Requested-With	XMLHttpRequest




大家好,

我在两个不同的服务器上部署了相同的应用程序代码。应用程序基于RESTFUL我们的服务。 在UI上,其中一个服务器" 404 Not Found exception"和其他作品。 我附加了两个Code spinets。 没有"内容类型"一个服务器的响应头中的属性。 另一个发送内容类型为application / json。

这种偏差的原因应该是什么? 唯一的区别是部署的服务器,我在这里缺少任何配置吗?

0 个答案:

没有答案