From 8e655ed8fe4e5e9f75748cf1051fe2653299c230 Mon Sep 17 00:00:00 2001 From: anschrammh Date: Wed, 28 Sep 2022 23:29:51 +0200 Subject: [PATCH] Added the Access-Control-Allow-Origin: * header to ease the html dashboard upudate, will have to find a better implementation --- src/app/WEBServer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/WEBServer.h b/src/app/WEBServer.h index e674461..4b7a865 100644 --- a/src/app/WEBServer.h +++ b/src/app/WEBServer.h @@ -72,6 +72,8 @@ class WEBServer : public TCPServer, public HttpConstants { client->printf("\r\nContent-Length: %d", contentLength); } + + client->print("\r\nAccess-Control-Allow-Origin: *"); client->print("\r\n\r\n"); }