from flask import Flask, request app = Flask(__name__) @app.route("/", methods=['GET', 'POST']) def hello_world(): # we need to force the detection of csp payload as json content = request.get_json(force=True) print(f"Got json {content}") if content: return content else: return "Nothing received"