简体   繁体   中英

Invalid Host header

When i try to make GET or POST it response me with Invalid Host header

Can someone tell me where is the problem?

PS im using POSTMAN for testing this rests 在此处输入图片说明

You can try and use Postman Interceptor to get around this.

Chrome apps, by default, cannot send certain headers (Host is one of them) in XHR requests.

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

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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