כל השגיאות · קוד session_insecure_behind_proxy
עוגיית ההפעלה לא הוגדרה
Secure session cookie not set
מה זה
השרת מאחורי פרוקסי חושב שהבקשה HTTP ולכן לא שולח עוגיית Secure.
Behind a reverse proxy the app saw HTTP, so it refused to set a Secure cookie.
מתי זה קורה
NODE_ENV=production או TRUST_PROXY עם cookie.secure=true ו־req.secure=false.
השפעה
Auth0 callback מצליח, אבל /order ו־/me בלי session.
איך לפתור
- מפעיל: TRUST_PROXY=1 ו־X-Forwarded-Proto מה־Caddy.
- לא להיכנס דרך IP/HTTP.
לוגים
בשרת חפשו [site-error] עם code":"session_insecure_behind_proxy ו־request_id 952c7cc3-c223-4270-bf0b-826c4e6375fd. אירוע ביקורת: session_cookie.