@blueprint.route('/redirect_me')
def redirect_me():
payload = {'key': 'value'}
return redirect('http://external.com', payload=payload)
return render_template('js_post.html', payload=payload)
$.post('http://external.com', {'key':'value'}, function(data){
window.location = data.redirect;
});