Skip to content

Commit

Permalink
enabled CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Dec 31, 2019
1 parent 9def7a3 commit 5c4336f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Flask-Mail==0.9.1
flask-restplus==0.11.0
Flask-SQLAlchemy==2.3.2
Flask-Testing==0.7.1
Flask-Cors==3.0.8
idna==2.6
itsdangerous==0.24
Jinja2==2.10
Expand Down
2 changes: 2 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from flask import Flask
from config import get_env_config
from flask_cors import CORS


def create_app(config_filename):
Expand Down Expand Up @@ -28,6 +29,7 @@ def create_app(config_filename):


application = create_app(get_env_config())
CORS(application)


@application.before_first_request
Expand Down

0 comments on commit 5c4336f

Please sign in to comment.