我的烧瓶应用程序中有一条路线。但是当它发送文件时,它显示它来自ip xxx.xxx.xxx.xxx而不是domain.com
这是我的路线
@app.route('/mp4/')
@db_session
def mp4():
filename = request.args.get('filename')
response = make_response(filename)
response.headers['Content-Type'] = 'video/mp4'
response.headers["Content-Disposition"] = 'attachment; filename=%s' % filename
response.headers['Content-Length'] = os.path.getsize(filename)
return send_file(
filename,
mimetype="video/mp4",
as_attachment=True,
attachment_filename="%s" % filename)
我该怎么做才能显示从域而不是服务器ip发送?