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…
Reference in New Issue