Answer the question
In order to leave comments, you need to log in
How to correctly send a request from outside to django?
Good evening! Tell me please. I broke my whole head, rummaged through the whole Google. All I could find is that you need to ADD CROS to both the request and the response.
The point is the following. There is a site on a domain on a host somewhere. There is a site on another domain on the server.
Django service is running on the server.
And here I am from the site on the host, I need to send an ajax request to django on the server, and accept the response.
Help how to do it? The code is desirable, the simplest option
Answer the question
In order to leave comments, you need to log in
https://stackoverflow.com/questions/3506208/jquery...
enable-cors.org
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question