Invalid character in header content [“Host”] Postman

When i try to test api with localhost:[port] it gives the invalid character in header [“Host”] console error. I am using dotnet core webApi. I cross checked the CORS configuration from api end it is fine. The issue is on the Postman side.
Postman version : v8.7.0
I am attaching the screenshot.

Any help in this regards will be appreciated.

1 Like

You must set you localhost URL as 127.0.0.1:5100.
If you use ENVIRONMETS, check your URL variable CONTAINS “/” as last symbol.
like this: http://127.0.0.1:8000/ <------------
NOT THIS: http://127.0.0.1:8000

Hi,
But When I’m trying to add ‘/’ at the last of my host URL it gives me the error “404”.
Can you suggest just another approach.

Thanks

Hello Team,

Any resolution for the above issue? I get the same error to the API call which is duplicated or forked, the API call that was initially created doesn’t have any issue.