Commit f9b5da54 authored by RyanHerb's avatar RyanHerb

controllers/segmenter.py add crossdomain headers

Missing crossdomain headers were prevent some features of the javascript
segmenter from functionning.
This should resolve those issues
parent 105015c5
......@@ -5,6 +5,11 @@ import shutil
import defs
from subprocess import Popen, PIPE, STDOUT, os
if request.env.http_origin:
response.headers['Access-Control-Allow-Origin'] = request.env.http_origin
response.headers['Access-Control-Allow-Credentials'] = 'true'
response.headers['Access-Control-Max-Age'] = 86400
@contextmanager
def TemporaryDirectory():
name = tempfile.mkdtemp()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment