Search code examples
javascriptpostgetpostman

Invalid Host header


When i try to make GETorPOST it response me with Invalid Host header

Can someone tell me where is the problem?

P.S im using POSTMAN for testing this rests enter image description here


Solution

  • 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

    enter image description here