diff --git a/src/pyDataVizDay.py b/src/pyDataVizDay.py index e55bc4d..ff6e932 100644 --- a/src/pyDataVizDay.py +++ b/src/pyDataVizDay.py @@ -14,6 +14,7 @@ from collections import Counter from flask import Flask from flask import request, render_template, make_response, jsonify, Blueprint, url_for from flask_restplus import Resource, Api, fields, reqparse +from flask_cors import CORS, cross_origin import settings import etl import palettes as pal @@ -22,6 +23,7 @@ from iplotter import C3Plotter c3 = C3Plotter() app = Flask(__name__) +CORS(app) api_blueprint = Blueprint('api', __name__, url_prefix='/api') api = Api(api_blueprint, title='pyDataVizday api', description='This api is used for the pyDataVizDay visualization',