Added the Access-Control-Allow-Origin: * header to ease the html dashboard upudate, will have to find a better implementation

This commit is contained in:
anschrammh 2022-09-28 23:29:51 +02:00
parent 4841bb8dff
commit 8e655ed8fe

View File

@ -72,6 +72,8 @@ class WEBServer : public TCPServer<T>, public HttpConstants
{
client->printf("\r\nContent-Length: %d", contentLength);
}
client->print("\r\nAccess-Control-Allow-Origin: *");
client->print("\r\n\r\n");
}