Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

401 error from api call. angular 2

priyanka Apr 05, 2019 11:03AM BST

if i use this api
i am getting error [Access to XMLHttpRequest at '' from origin 'http://localhost:3002' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.]

if i use below api

error [ GET 401 (Unauthorized)]

pls help me

Up 0 rated Down
Pavel Zuykov Apr 05, 2019 12:10PM BST OpenWeatherMap Agent


You are using sample APPID. Please use your own API key.

Up 0 rated Down
A G Priyanks Apr 06, 2019 03:18PM BST
Thank you for the response it helped to prove myself correct, this apis are given by some company for the interview but the didn't mention API Key.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found