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
If you use ENVIRONMETS, check your URL variable CONTAINS “/” as last symbol.
like this: <------------