Add CORS.

This commit is contained in:
Alexis Lahouze 2016-01-13 00:08:47 +01:00
parent 832da874c9
commit 1db40c80b6

View File

@ -15,10 +15,14 @@
along with Accountant. If not, see <http://www.gnu.org/licenses/>. along with Accountant. If not, see <http://www.gnu.org/licenses/>.
""" """
from flask import Blueprint from flask import Blueprint
from flask.ext.restful import Api from flask.ext.restful import Api
from flask.ext.cors import CORS
blueprint = Blueprint('api', __name__) blueprint = Blueprint('api', __name__)
api = Api(blueprint) api = Api(blueprint)
CORS(blueprint)
# Load all views. # Load all views.
from .views import * from .views import *