HTML code of loading favicon is delow.
<link rel="icon" href="favicon.ico" id="favicon" />
Server side script return favicon file is below.
@app.route('/favicon.ico')
def faviconindex():
with open('chalicelib/static/images/favicon.ico', 'rb') as fp:
data = fp.read()
return Response(body=data, status_code=200, headers={"Content-Type": "image/x-icon", "Access-Control-Allow-Origin": "*"})
Do you know why favicon is not displayed?