CORS
1 files changed, 3 insertions(+), 2 deletions(-) M src/index.lua
M src/index.lua => src/index.lua +3 -2
@@ 75,7 75,8 @@ end http.createServer(function (req, res) res:setHeader("Access-Control-Allow-Origin", "*") local routesText = readAll(routeFile) local routes = json.decode(routesText).routes @@ local routed = false 114,7 115,7 @@ http.createServer(function (req, res) local array = {} for i,f in pairs(files) do array[i] = {} array[i].filename = f array[i].filename = f:gsub(route.res, "") array[i].content = readAll(f) array[i].size = #array[i].content end