mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
Merge pull request #5405 from chromoxdor/Enable-CORS-globally-on-ESP8266
[ESP8266] Enable CORS globally
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -377,6 +377,8 @@ void WebServerInit()
|
||||
|
||||
#if defined(ESP8266)
|
||||
|
||||
web_server.enableCORS(true);
|
||||
|
||||
# if FEATURE_SSDP
|
||||
|
||||
if (Settings.UseSSDP)
|
||||
|
||||
Reference in New Issue
Block a user