简体   繁体   English

无效的主机头

[英]Invalid Host header

When i try to make GET or POST it response me with Invalid Host header 当我尝试进行GETPOST它使用Invalid Host header响应我

Can someone tell me where is the problem? 有人可以告诉我问题出在哪里吗?

PS im using POSTMAN for testing this rests PS即时通讯使用POSTMAN进行测试 在此处输入图片说明

You can try and use Postman Interceptor to get around this. 您可以尝试使用Postman Interceptor来解决此问题。

Chrome apps, by default, cannot send certain headers (Host is one of them) in XHR requests. 默认情况下,Chrome应用无法在XHR请求中发送某些标头(主机是其中之一)。

https://www.getpostman.com/docs/postman/sending_api_requests/interceptor_extension https://www.getpostman.com/docs/postman/sending_api_requests/interceptor_extension

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM