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