Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion annotation_api/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def create_app():

CORS(app, resources={
r'/api/*': {
'origins': app.config['ORIGIN_URLS'],
'origins': [
app.config['ORIGIN_URL']
],
'supports_credentials': True
}
})
Expand Down
2 changes: 1 addition & 1 deletion annotation_api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class FlaskConfig:
PERMANENT_SESSION_LIFETIME = 86400 # 24 hours
SESSION_USE_SIGNER = (os.environ.get('SESSION_USE_SIGNER') or 'true').lower() in ['true', '1', 't', 'y', 'yes']
SESSION_REDIS = redis.from_url(os.environ.get('SESSION_REDIS'))
ORIGIN_URLS = os.environ.get('ORIGIN_URL').split(' ') #pyright: ignore
ORIGIN_URL = os.environ.get('ORIGIN_URL') #pyright: ignore
BUCKET_NAME = os.environ.get('BUCKET_NAME')

db_config = {
Expand Down
Loading