Skip to content

Commit e720cbc

Browse files
committed
pandocode-live: allow CORS
1 parent 91dcadc commit e720cbc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

live/cgi-bin/latex.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import sys
33
from pandocode.codeprocessor import process_code
44

5-
print("Content-type: text/plain\n\n")
5+
print("Content-type: text/plain")
6+
print("Access-Control-Allow-Origin: *")
7+
print("")
68

79
print(process_code(sys.stdin.read()))

live/lighttpd.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mimetype.assign = (
1010

1111
index-file.names = ( "index.html" )
1212

13-
server.modules += ( "mod_cgi" )
13+
server.modules += ( "mod_cgi" "mod_setenv" )
1414

1515
$HTTP["url"] =~ "^/cgi-bin/" {
1616
cgi.assign = ( ".py" => "/bin/python-wrapper" )

0 commit comments

Comments
 (0)