from corsheaders.defaults import default_headers

ALLOWED_HOSTS = ['*']

USE_X_FORWARDED_HOST = True

CORS_ORIGIN_WHITELIST = (
    "http://localhost:8082",
"https://main.d398abgajqt044.amplifyapp.com",
)
CSRF_TRUSTED_ORIGINS = CORS_ORIGIN_WHITELIST
CORS_ALLOWED_ORIGINS = CORS_ORIGIN_WHITELIST

CORS_ALLOW_HEADERS = list(default_headers) + [
    "Özel-Header", 
    "authorization"
]

MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',  # Bunun Altına corsheaders ekle
'corsheaders.middleware.CorsMiddleware',
)
Bu Configleri dener misin?