aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xzzcxz.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/zzcxz.cgi b/zzcxz.cgi
index c7b1f63..4227039 100755
--- a/zzcxz.cgi
+++ b/zzcxz.cgi
@@ -562,7 +562,10 @@ map["^/g/(%w%w%w%w%w)/raw$"] = function(p)
local page = load_page(p, true)
if not page then return not_found() end
- return page, { content_type = 'text/plain' }
+ return page, {
+ content_type = 'text/plain',
+ headers = { ['access-control-allow-origin'] = "*" }
+ }
end
map["^/about/?$"] = function()