From 3d58912ef1bef9e5cb64660fcdde42444487d47b Mon Sep 17 00:00:00 2001
From: Adrian Scillato <35405447+ascillato@users.noreply.github.com>
Date: Thu, 5 Aug 2021 12:55:07 -0300
Subject: [PATCH] Set CORS as an optional feature in Webserver
---
tasmota/xdrv_01_webserver.ino | 31 ++++++++++++++++++++++++++++---
1 file changed, 28 insertions(+), 3 deletions(-)
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 =
"