hey, I have a website with django as backend running on aws ec2 instance,
in this instance I have another nginx config that served another static website.
So I have myDomain.com (django website)
and test.myDomain.com that looks like this:
server {
listen 80;
server_name test.myDomain.com;
root /home/ubuntu/staticLandingPage;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}
in the landing page (test.myDomain.com) don’t have backend but I have a form I want to save it’s data.
how can I send a post request to the django server in my domain? I think I need the csrf token but i’m not really connected to the django project.