Skip to content

Commit 7e1559c

Browse files
committed
fix: flask>=3.1, changed variable
1 parent b4602a5 commit 7e1559c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

invenio_app_ils/config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- coding: utf-8 -*-
22
#
33
# Copyright (C) 2018-2020 CERN.
4+
# Copyright (C) 2025 Graz University of Technology.
45
#
56
# invenio-app-ils is free software; you can redistribute it and/or modify it
67
# under the terms of the MIT License; see LICENSE file for more details.
@@ -296,10 +297,10 @@ def _(x):
296297
SESSION_COOKIE_SECURE = True
297298
SESSION_COOKIE_SAMESITE = "Lax"
298299
#: Since HAProxy and Nginx route all requests no matter the host header
299-
#: provided, the allowed hosts variable is set to localhost. In production it
300+
#: provided, the trusted hosts variable is set to localhost. In production it
300301
#: should be set to the correct host and it is strongly recommended to only
301302
#: route correct hosts to the application.
302-
APP_ALLOWED_HOSTS = ["localhost", "127.0.0.1"]
303+
TRUSTED_HOSTS = ["localhost", "127.0.0.1"]
303304

304305
#: Single Page Application host and routes, useful in templates/emails
305306
SPA_HOST = "https://127.0.0.1:3000"

0 commit comments

Comments
 (0)