title: Failed to load resource: the server responded with a status of 403 (Forbidden)?
body: <p>i am posting javascript localstorage object to backend(django). I am passing it through ajax. 
  this is the code in frontend.</p>
  
  <pre><code>function checkout_(){
  
        console.log("checkout");
        for(v in list1){
  
          object=Object.values(localStorage)[v];
  
          object = JSON.parse(object)
  
  
          }
          //ajax here
          console.log(object.length);
            $.ajax({
  
                  url: '{% url "chout" %}',
                  data: {
                     'object': object
                    },
                    method: "POST",
                    dataType: 'json',
                    success: function (data) {
                               alert("success");
  
                       }
                     });
  </code></pre>
  
  <p>i have given this function to a button via onclick. </p>
  
  <pre><code>&lt;button class="bg-danger text-white " onclick="checkout_()"&gt;Go To Checkout Counter&lt;/button&gt;
  </code></pre>
  
  <p>when i click on this button this error "Failed to load resource: the server responded with a status of 403 (Forbidden)" happens.</p>
  
  <p>in the views.py this is the code. </p>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>def checkoutnow(request):
  
      return render(request, "mart/checkout.html")
  </code></pre>
  
  <p>I hope this detail is enough to explain the problem..Thankyou</p>