You are sending form encoded data, not JSON. Just setting the content-type doesn't turn your request into JSON. Use json=
to send JSON data.
response = requests.post(url, json={"user": user,"pass": password})
Retrieve the data in Flask with:
data = request.get_json()