Skip to content

Instantly share code, notes, and snippets.

@sehrishnaz
Created January 3, 2022 09:41
Show Gist options
  • Save sehrishnaz/28f0fb7b114fd73ceb3bcb27ebecfb7b to your computer and use it in GitHub Desktop.
Save sehrishnaz/28f0fb7b114fd73ceb3bcb27ebecfb7b to your computer and use it in GitHub Desktop.
Post Request Via Ajax in Django CSRF Token Missing or Incorrenct
<div class="form-group mb-3">
<textarea id="textAreaId" rows="10" cols="20" class="form-control"></textarea>
</div>
<div class="form-group">
<input id="btn_ajax_post" type="button" value="Ajax Post To Django" onclick="ButtonSearchClick()">
</div>
@sehrishnaz
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment