getting django cors error for subdomain but is working on different domain
I’ve a django app running with gunicorn and nginx.
While making request from [ALL https] project.vercel.app
to backend.domain.com
works correctly.
But when i make request from domain.com
(Devtools>RequestHeader>Origin : www.domain.com
) to backend.domain.com
, it gives CORS error “has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”.