ESPAsyncWebServer icon indicating copy to clipboard operation
ESPAsyncWebServer copied to clipboard

Trouble with Favicon.ico not being displayed

Open Tech500 opened this issue 7 months ago • 0 comments

Code for favicon.ico request:

 serverAsync.on("/favicon.ico", HTTP_GET, [](AsyncWebServerRequest *request){
   request->send(LittleFS, "/favicon.ico", "image/x-icon");
});

If LAN address is used or WAN address is used Favicon.ico is displayed in Browser.

If No-ip.com; masked, URL record and hostname is used, Favicon.ico is not displayed in browser.

"weather-3.ddns.net" is the No-ip.com hostname.

William

Tech500 avatar Nov 30 '23 15:11 Tech500