1
1
1thater2020-09-23 08:17:54
JavaScript
1thater, 2020-09-23 08:17:54

Why is yandex blocking the request?

http://192.168.0.10:5500/Why is the request to api blocked on the local server
qBaIdLFQGNHEc_DN3KCo1AoFkMnir7WbBeWKoNlVgdw8jqILuiaUNcEnV1pHkXTqeFi9p1XrkVXB7F_fvSA47g ==? uid = 0 & filename = 2020-09-23_09-03-19.png & disposition = inline & hash = & limit = 0 & content_type = image% 2Fpng & tknv = v2 & owner_uid = 527911757 & size = 2048x2048
h47M_1ZiEN2dZy2RB39F26kAcTZy8W7VZQak-eogB6Jg8YjfeMZKhRFbcE061KhyZKTL7EqI15RrD4IQ1KxKsA ==? uid = 0 & filename = 2020-09-23_09-04-49.png & disposition = inline & hash = & limit = 0 & content_type = image% 2Fpng & tknv = v2 & owner_uid = 527911757 & size = 2048x2048

ip is in allowed.

GET https://api-maps.yandex.ru/2.1/?apikey=мой apikey&lang=ru_RU net::ERR_ABORTED 403 (Forbidden)


Does everything work on localhost:5500?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2020-09-23
@1thater

The API key is bound to a domain and localhost has an exception in it. Add your IP as allowed for the key.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question