Authorization Error

I try to make get request from localhost with my api key. It throws below error.
image
However if i try to send the same request with same credentials from postman, i get the response with data , perfectly fine. The problem being here is request is being made from localhost, isn’t it possible to make requests from localhost?

Have you tried searching for ‘Empty Auth’ in the top right search option on this forum?