V
V
Vitaly Unknown2016-04-12 12:02:57
JavaScript
Vitaly Unknown, 2016-04-12 12:02:57

Issue with CORS, how to pull Location?

CORS problem.
From the server, the Location header comes to me, and I need to pull it out.
I work locally. and the API, respectively, on the server, and because of CORS I can’t get it.
Can anyone come across?
fetch(' http://**********/api/ ', {method: 'get'}).then((resp) => {console.log(resp.headers.get(' Content-Type'))}) (only Content-Type comes in, the rest is null

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question