diff --git a/src/rest/response.lua b/src/rest/response.lua index 938ac28..4e7b8cf 100644 --- a/src/rest/response.lua +++ b/src/rest/response.lua @@ -82,7 +82,9 @@ end function M:send() io.write("Status: " .. self.httpStatusCode .. " " .. self.httpStatusText .. "\r\n") - io.write ("Content-type: " .. self.contentType .. "\r\n\r\n") + io.write("Content-type: " .. self.contentType .. "\r\n") + io.write("Access-Control-Allow-Origin: *\r\n\r\n") + print(self:serializeAsJson()) end