Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: "http://127.0.0.1:5000/",
- method: "POST",
- headers: {
- 'Access-Control-Allow-Origin':'*',},
- data: dict,
- });
- @app.route('/',methods=['POST'])
- def hello_world():
- ok = request.get_json()
- print(ok['id'])
- return '', 200
Add Comment
Please, Sign In to add comment