U
U
undeadter2016-06-05 16:05:39
JavaScript
undeadter, 2016-06-05 16:05:39

How to get response without Access-Control-Allow-Origin using AngularJS $http?

You need to send a GET request using AngularJS - $http() and get a response. If you specify 'Access-Control-Allow-Origin': '*' in the response headers, then the responses come, otherwise they don't. I tried using Python: requests.get() I get responses from the server without problems, without any parameters in the request header. Tried to send also 'Host' in request headers, does not help. How to get an answer?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-06-05
@undeadter

We read what is CORS.
Short answer - from the browser - no.

S
Slava Vitrenko, 2016-06-05
@bagiroff777

Without specifying Access Control - in any way. That's what he was made for.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question