2
0
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:
Matthias Mair
2025-01-08 20:03:42 +01:00
parent 7ef84c87a2
commit a00f090a87
3 changed files with 3 additions and 23 deletions

View File

@ -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