We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0890584 commit 0ec4ee3Copy full SHA for 0ec4ee3
1 file changed
src/opengeodeweb_back/app.py
@@ -132,6 +132,7 @@ def run_server(app: Flask) -> None:
132
parser.add_argument(
133
"-origins",
134
"--allowed_origins",
135
+ nargs="+",
136
default=app.config.get("ORIGINS"),
137
help="Origins that are allowed to connect to the server",
138
)
@@ -148,7 +149,8 @@ def run_server(app: Flask) -> None:
148
149
150
app.config.update(UPLOAD_FOLDER=args.upload_folder_path)
151
app.config.update(MINUTES_BEFORE_TIMEOUT=args.timeout)
- flask_cors.CORS(app, origins=args.allowed_origins)
152
+ origins = args.allowed_origins.split(",")
153
+ flask_cors.CORS(app, origins=origins)
154
print(f"{args=}", flush=True)
155
156
db_filename: str = app.config.get("DATABASE_FILENAME") or "project.db"
0 commit comments