From aa72712b30e43bd36968b7a52749f80963f66342 Mon Sep 17 00:00:00 2001 From: Clemens Fries Date: Sat, 22 Sep 2018 16:19:30 +0200 Subject: Add a simple web site that displays the sensor data This also adds an overly broad CORS policy, complying with best industry practices for IoT. --- application.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'application.lua') diff --git a/application.lua b/application.lua index ad90814..2474822 100644 --- a/application.lua +++ b/application.lua @@ -15,6 +15,7 @@ srv:listen(80,function(conn) -- local Tsgn = (T < 0 and -1 or 1); T = Tsgn*T conn:send(string.format([[HTTP/1.1 200 OK Content-Type: application/json +Access-Control-Allow-Origin: * Connection: close {"temperature": %s, "pressure": %s, "humidity": %s, -- cgit