i have this weird issue, my flask app works perfectly fine as long as i am opening the page from Mac machine.
but when i open the page from Windows machine (Chrome/IE) when i click the bottom to return the output, it just shows me a blank page. i cant understand why that's happening and i don't know how to google it :)
with that being said, i have moved the entire app to a windows server but again i cant see the output page on a windows machine whereas i see it perfectly fine from Mac Machine. any tip will be much appreciate it!!!
here's a sample code that i have in the app
@app.route('/vxlan_config', methods=["GET", "POST"])
def vxlan_config():
vxlan_config_file = open("/Users/ahmad/ShcConfigs/vxlan_config.txt", "w")
if request.method == "POST":
vlanid = request.form["vlanid"]
description = request.form["description"]
vrf = request.form["vrf"]
ip = request.form["ip"]
mask = request.form["mask"]
vxlan_conf = SHCDCConfig(vlanid, description, vrf, ip, mask)
vxlan_config_file.write(vxlan_conf.vxlan_config())
return send_file("/Users/ahmad/ShcConfigs/vxlan_config.txt",
attachment_filename='vxlan_config.txt')
return render_template('vxlan_config.html')