79081877

Date: 2024-10-12 20:40:25
Score: 2.5
Natty:
Report link

For cors to be included in your responses, you'll need to add it to your middlewares too. Considering you haven't added it, as it is not mentioned in the code snippets, You can follow the guide here: https://www.geeksforgeeks.org/how-to-enable-cors-headers-in-your-django-project/

For reading further info on how CORS middleware works in django, you can go through the resources mentioned in this answer: https://stackoverflow.com/a/35761088/11539362

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • No code block (0.5):
  • Low reputation (1):
Posted by: Da Scientist