cannot post a new DB to apache-superset, 400 Error with CSRF

Solution
def create_db_connection(session, db_ip, db_port, db_user, db_pass, db_name, token_from_your_crsf_url):

    headers = {
        'Referrer': login_url,
        'X-CSRFToken': token_from_your_crsf_url
    }
    ...
    response = session.post(url=url, headers=headers, json=data_out)
    ...