From 0a05b4091f4578c476b8794f2c10fc2ed135dd93 Mon Sep 17 00:00:00 2001 From: Firmlyzhu Date: Sat, 22 Dec 2018 17:03:41 +0800 Subject: [PATCH] ignore the key of csrf_token in backend --- src/master/httprest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/master/httprest.py b/src/master/httprest.py index cb2d00e..abbdb10 100755 --- a/src/master/httprest.py +++ b/src/master/httprest.py @@ -803,6 +803,8 @@ def add_job(user,beans,form): 'message': 'add batch job success' } for key in job_data: + if key == 'csrf_token': + continue key_arr = key.split('_') value = job_data[key] if key_arr[0] == 'srcAddr' and value == '':