[Refactor] web server header cleanups (#16)
* Rename variables * Content type headers * Headers cleanup
This commit is contained in:
1 parent
27b4ad90d3
commit
1734425b9c
4 files changed
+72
-62
No files matched your search
@@ -11,7 +11,7 @@ namespace Http
|
||||
m.All("*", function(context as object) as boolean
|
||||
router = context.router
|
||||
response = context.response
|
||||
response.allow_origin = router.origin
|
||||
response.headers["Access-Control-Allow-Origin"] = router.origin
|
||||
return false
|
||||
end function)
|
||||
end function
|
||||
|
||||
Reference in new issue
Block a user