Skip to content

Commit

Permalink
Add flask_cors dependency to enable CORS handling in the API
Browse files Browse the repository at this point in the history
  • Loading branch information
fazzy12 committed Jan 2, 2024
1 parent 237930e commit b7e65b4
Show file tree
Hide file tree
Showing 1,907 changed files with 1 addition and 720,638 deletions.
3 changes: 1 addition & 2 deletions api/v1/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
app = Flask(__name__)
app.config['JSONIFY_PRETTYPRINT_REGULAR'] = True
app.register_blueprint(app_views)
cors = CORS(app, resources={r"/api/v1/*": {"origins": "*"}})

cors = CORS(app, resources={r"/*": {"origins": "0.0.0.0"}})


@app.teardown_appcontext
Expand Down
247 changes: 0 additions & 247 deletions myenv/bin/Activate.ps1

This file was deleted.

69 changes: 0 additions & 69 deletions myenv/bin/activate

This file was deleted.

26 changes: 0 additions & 26 deletions myenv/bin/activate.csh

This file was deleted.

Loading

0 comments on commit b7e65b4

Please sign in to comment.