diff --git a/accountant/api/__init__.py b/accountant/api/__init__.py index cafdede..b4ff6b7 100644 --- a/accountant/api/__init__.py +++ b/accountant/api/__init__.py @@ -15,10 +15,14 @@ along with Accountant. If not, see . """ from flask import Blueprint + from flask.ext.restful import Api +from flask.ext.cors import CORS blueprint = Blueprint('api', __name__) api = Api(blueprint) +CORS(blueprint) + # Load all views. from .views import *