I have two projects. The first one is a project with Django Rest Framework APIs, and the second one is a Django project where I will create HTML pages and handle all the front-end parts of the project.
When I deploy both projects on the server and add CORS middleware properly in both, I still get a CORS error.
I will run both project on a different port.
and I will try also using a decorator concept.
This is my second Project Setting.py
This is my first restapi project Settings.py
How to resolve this ?
Yash Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.