Why doesn't the csrf_exempt work on my view in Django?

前端 未结 0 1713
星月不相逢
星月不相逢 2021-01-03 17:45

I am making a fetch request to one of the Urls as:

function like(id){


fetch(`/likepost/${id}`, {
    method:\'PUT\',
    body: JSON.stringify({
        \'id         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题