Skip to content

Commit

Permalink
drop flask-cors package
Browse files Browse the repository at this point in the history
This should be handled via whatever webserver but not the web itself.

Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar committed Sep 26, 2023
1 parent 243dfe8 commit 0c38d6c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 32 deletions.
3 changes: 0 additions & 3 deletions asu/asu.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import connexion
from flask import Flask, render_template, send_from_directory
from flask_cors import CORS
from pkg_resources import resource_filename
from prometheus_client import CollectorRegistry, make_wsgi_app
from rq import Queue
Expand All @@ -27,8 +26,6 @@ def create_app(test_config: dict = None) -> Flask:

cnxn = connexion.FlaskApp(__name__)
app = cnxn.app
CORS(app)

app.config.from_mapping(
PUBLIC_PATH=getenv("PUBLIC_PATH", Path.cwd() / "public"),
REDIS_URL=getenv("REDIS_URL") or "redis://localhost:6379",
Expand Down
30 changes: 2 additions & 28 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ connexion = {extras = ["swagger-ui"], version = "^2.14.2"}
prometheus-client = "^0.13.1"
gunicorn = "^20.1.0"
podman = "^4.4.1"
flask-cors = "^3.0.10"

[tool.poetry.dev-dependencies]
pytest = "^6.2.5"
Expand Down

0 comments on commit 0c38d6c

Please sign in to comment.