diff --git a/fractalis/__init__.py b/fractalis/__init__.py index 09271d564c4144898801fbf34c08008aa8a949f6..87bc3e090ccf7b1287410ecf2b0bb9e0c151cded 100644 --- a/fractalis/__init__.py +++ b/fractalis/__init__.py @@ -6,12 +6,14 @@ Modules in this package: import logging from flask import Flask +from flask_cors import CORS from redis import StrictRedis from fractalis.session import RedisSessionInterface app = Flask(__name__) +CORS(app) # allow everyone to submit requests # Configure app app.config.from_object('fractalis.config') diff --git a/setup.py b/setup.py index b06c8e8722a3e3898030cc970323f964cd4276ae..1fd24fcc09bfcc629b2be4fff245c0dcf10ac2d0 100644 --- a/setup.py +++ b/setup.py @@ -8,6 +8,7 @@ setup( packages=find_packages(), install_requires=[ 'Flask', + 'flask-cors', 'jsonschema', 'celery[redis]', 'redis',