Another header required

1.2-legacy
Sacha Weatherstone 2021-01-24 10:48:48 +11:00
rodzic 9db5f9ff67
commit 31b89e2932
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -975,6 +975,8 @@ void handleHotspot(HTTPRequest *req, HTTPResponse *res)
// Status code is 200 OK by default.
// We want to deliver a simple HTML page, so we send a corresponding content type:
res->setHeader("Content-Type", "text/html");
res->setHeader("Access-Control-Allow-Origin", "*");
res->setHeader("Access-Control-Allow-Methods", "GET");
// res->println("<!DOCTYPE html>");
res->println("<meta http-equiv=\"refresh\" content=\"0;url=/\" />\n");