diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino
index 7041bda45..2b250251f 100644
--- a/tasmota/xdrv_01_webserver.ino
+++ b/tasmota/xdrv_01_webserver.ino
@@ -292,7 +292,10 @@ const char HTTP_FORM_WIFI_PART2[] PROGMEM =
"
" D_AP2_SSID " (" STA_SSID2 ")
"
"
"
"" D_HOSTNAME " (%s)
"
- "" D_CORS_DOMAIN "
";
+#ifdef USE_CORS
+ "" D_CORS_DOMAIN "
"
+#endif
+ ;
const char HTTP_FORM_LOG1[] PROGMEM =
"