React django permissions


I am still new in react
when I tried to delete an element from API(django rest framework) in my case it’s not working
Error message :
Access to XMLHttpRequest at ‘http://127.0.0.1:8000/api/events/delete/3’ from origin ‘http://localhost:3000’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: Redirect is not allowed for a preflight request.enter image description here

Source: React – Stack Overflow

November 26, 2021
Category : News
Tags: django | django-rest-framework | permissions | reactjs

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.