I'm trying to sent a POST-Request, with App Inventor on a button click to my python program, in that case to log in my app. But I always get code 403 and don't know why. To host the API I'm using Django.
That's the App Inventor Code for my APP:

And that's my current python code, so for example I want to get the api_key, using request.POST['api_key]:

And that's finally the log, in this case I'm using the Django testserver with anaconda (pip):

That're every combination from code I tried, but nothing worked.


I searched even on Stack Overflow, Google or AppInventor itself, but there wasn't any solution for my problem.
I proofed it and found the mistake. The problem was the missing csrf_token. I only added
and it works perfectly.