Skip to content

Commit abf4c76

Browse files
author
ExpDev07
committed
added cors
1 parent 8fcfc89 commit abf4c76

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ flask = "*"
1111
python-dotenv = "*"
1212
requests = "*"
1313
gunicorn = "*"
14+
flask-cors = "*"
1415

1516
[requires]
1617
python_version = "3.8"

Pipfile.lock

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ You will need the following things properly installed on your computer.
2121

2222
## Running / Development
2323

24+
* `pipenv shell`
2425
* `flask run`
2526
* Visit your app at [http://localhost:5000](http://localhost:5000).
2627

app/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
from flask import Flask
2+
from flask_cors import CORS
23
from .settings import *
34

45
# Create the flask application.
56
app = Flask(__name__)
7+
CORS(app)
68

79
# Import assets, models, routes, etc.
810
from . import routes

0 commit comments

Comments
 (0)