Add CORS.
This commit is contained in:
parent
832da874c9
commit
1db40c80b6
@ -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 *
|
||||||
|
Loading…
Reference in New Issue
Block a user