Skip to content

Commit e2a092e

Browse files
Remove trailing slash from SITE_URL (#9559) (#9560)
- ref: https://github.com/inventree/InvenTree/discussions/9552 - ref: https://stackoverflow.com/questions/56404930/when-trying-set-corsheaders-in-settings-py-file (cherry picked from commit 5276520) Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
1 parent f2770f0 commit e2a092e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/InvenTree/InvenTree/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,7 @@
10951095
SITE_URL = get_setting('INVENTREE_SITE_URL', 'site_url', None)
10961096

10971097
if SITE_URL:
1098+
SITE_URL = str(SITE_URL).strip().rstrip('/')
10981099
logger.info('Using Site URL: %s', SITE_URL)
10991100

11001101
# Check that the site URL is valid

0 commit comments

Comments
 (0)