sforkowany z mirror/meshtastic-firmware
Another header required
rodzic
9db5f9ff67
commit
31b89e2932
|
@ -975,6 +975,8 @@ void handleHotspot(HTTPRequest *req, HTTPResponse *res)
|
||||||
// Status code is 200 OK by default.
|
// Status code is 200 OK by default.
|
||||||
// We want to deliver a simple HTML page, so we send a corresponding content type:
|
// We want to deliver a simple HTML page, so we send a corresponding content type:
|
||||||
res->setHeader("Content-Type", "text/html");
|
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("<!DOCTYPE html>");
|
||||||
res->println("<meta http-equiv=\"refresh\" content=\"0;url=/\" />\n");
|
res->println("<meta http-equiv=\"refresh\" content=\"0;url=/\" />\n");
|
||||||
|
|
Ładowanie…
Reference in New Issue