0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 19:13:49 +01:00

Allow access from all domains (not really secure)

This commit is contained in:
peteruithoven 2013-08-07 11:15:55 +02:00
parent 7dba0ad104
commit 4239044c54

View File

@ -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