Commit f7764568b20f5601731b5e823fd6f63e28d4339a
1 parent
4d933089
Exists in
devel
[TranslationServer] Adiciona header para envio dos bundles WEBGL
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/TranslationServer.py
... | ... | @@ -2,6 +2,7 @@ |
2 | 2 | # -*- coding: utf-8 -*- |
3 | 3 | |
4 | 4 | from flask import Flask, request, abort, send_from_directory |
5 | +from flask.ext.cors import CORS | |
5 | 6 | from functools import wraps |
6 | 7 | from PortGlosa import traduzir |
7 | 8 | from subprocess import check_output |
... | ... | @@ -14,6 +15,7 @@ BUNDLES_PATH=None |
14 | 15 | conn=None |
15 | 16 | lock = Lock() |
16 | 17 | app=Flask(__name__, static_url_path="", static_folder="/var/www/") |
18 | +CORS(app) | |
17 | 19 | |
18 | 20 | def check_run_mode(func): |
19 | 21 | @wraps(func) | ... | ... |