How can I write a route to receive Content Security Policy report with Flask without getting a 400 Bad Request error (flask_wtf.csrf.CSRFError)?

Solution
@app.route('/report-csp-violations', methods=['POST'])
    def report():
        content = request.get_json(force=True)   # that's where the shoe pinches
        print(json.dumps(content, indent=4, sort_keys=True))
        response = make_response()
        response.status_code = 204
        return response