403 Forbidden error when making an ajax Post request in Django framework May 31, 2023 by Tarik Because you did not post the csrfmiddlewaretoken, so Django forbid you. this document can help you.