Use flask-cors
CORS using http://flask.pocoo.org/snippets/56/