Merge pull request #5405 from chromoxdor/Enable-CORS-globally-on-ESP8266

[ESP8266] Enable CORS globally
This commit is contained in:
TD-er
2026-01-16 08:55:57 +01:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ void Web_StreamingBuffer::startStream(const __FlashStringHelper * content_type,
void Web_StreamingBuffer::startJsonStream() {
startStream(true, F("application/json"), F("*"));
startStream(false, F("application/json"), F(""));
}
void Web_StreamingBuffer::startStream(bool allowOriginAll,
+2
View File
@@ -377,6 +377,8 @@ void WebServerInit()
#if defined(ESP8266)
web_server.enableCORS(true);
# if FEATURE_SSDP
if (Settings.UseSSDP)