mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-27 19:16:44 +00:00
Remove trailing slash from SITE_URL (#9559)
- ref: https://github.com/inventree/InvenTree/discussions/9552 - ref: https://stackoverflow.com/questions/56404930/when-trying-set-corsheaders-in-settings-py-file
This commit is contained in:
parent
0bf1ab250f
commit
527652007e
@ -1024,6 +1024,7 @@ DATE_INPUT_FORMATS = ['%Y-%m-%d']
|
||||
SITE_URL = get_setting('INVENTREE_SITE_URL', 'site_url', None)
|
||||
|
||||
if SITE_URL:
|
||||
SITE_URL = str(SITE_URL).strip().rstrip('/')
|
||||
logger.info('Using Site URL: %s', SITE_URL)
|
||||
|
||||
# Check that the site URL is valid
|
||||
|
Loading…
x
Reference in New Issue
Block a user