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:
parent
7dba0ad104
commit
4239044c54
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user