Thanks for the answer, Actually the problem was in my fetch api code. In short i wasn't sending the csrf token with the request
On Tuesday, March 2, 2021 at 1:20:18 PM UTC+5:30 [email protected] wrote: > Hello, > Make use of restApi router which will give you the crud url and in ur > front end pass the url and add and ID to the url using > axios.delete("url/${I'd}, token of the user) > > Get Outlook for Android <https://aka.ms/ghei36> > > ------------------------------ > *From:* [email protected] <[email protected]> on behalf > of Dylan Reinhold <[email protected]> > *Sent:* Tuesday, March 2, 2021 1:46:34 AM > *To:* [email protected] <[email protected]> > *Subject:* Re: Urgent > > Don't put urgent as your subject if you don't want people to just block > you future emails. > > Dylan > > On Mon, Mar 1, 2021, 4:16 PM Aman Khan <[email protected]> wrote: > > How to make delete request to API from the frontend, i typed the localhost > URL for API but it is redirecting me to the browsable API but by the > postman, the data is successfully deleted, please someone help me out > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b624e4d3-b0a1-4b90-91eb-552deaa50d28n%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/b624e4d3-b0a1-4b90-91eb-552deaa50d28n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAHtg44BwzKUnc0YBaCYmp5jrOfj_fh8qXa6%3DXoVoWhMR4iBx7A%40mail.gmail.com > > <https://groups.google.com/d/msgid/django-users/CAHtg44BwzKUnc0YBaCYmp5jrOfj_fh8qXa6%3DXoVoWhMR4iBx7A%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/983ee02b-c32c-42e6-b6b0-207bcfa35d20n%40googlegroups.com.

