mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-23 03:23:47 +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()
|
function M:send()
|
||||||
io.write("Status: " .. self.httpStatusCode .. " " .. self.httpStatusText .. "\r\n")
|
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())
|
print(self:serializeAsJson())
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user