mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 12:35:46 +00:00
remove x-session, not needed anymore
This commit is contained in:
@ -20,7 +20,6 @@ from django.core.validators import URLValidator
|
||||
from django.http import Http404, HttpResponseGone
|
||||
|
||||
import structlog
|
||||
from corsheaders.defaults import default_headers
|
||||
from dotenv import load_dotenv
|
||||
from zoneinfo import ZoneInfo, ZoneInfoNotFoundError
|
||||
|
||||
@ -1164,8 +1163,6 @@ USE_X_FORWARDED_PORT = get_boolean_setting(
|
||||
# Ref: https://github.com/adamchainz/django-cors-headers
|
||||
|
||||
|
||||
CORS_ALLOW_HEADERS = (*default_headers, 'x-session-token')
|
||||
|
||||
# Extract CORS options from configuration file
|
||||
CORS_ALLOW_ALL_ORIGINS = get_boolean_setting(
|
||||
'INVENTREE_CORS_ORIGIN_ALLOW_ALL', config_key='cors.allow_all', default_value=DEBUG
|
||||
|
Reference in New Issue
Block a user