Answer the question
In order to leave comments, you need to log in
JS fetch why is it throwing CORS?
Good evening! Please tell me what the problem
is. There is a website: https://api-ip.fssp.gov.ru
Through the API, you need to get the data of a specific person.
I signed up on the site and received a token for
requests
let url = 'https://api-ip.fssp.gov.ru/api/v1.0/search/physical?token=lyzPggx3R0gR®ion=61&firstname=Александр&lastname=Александр&secondname=Александр&birthdate=07.07.1981'
async function fetchTest(param){
let promise = await fetch(param)
let respons = await promise.json()
console.log(respons);
}
fetchTest(url)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question