HTTP 403 / CSRF
CSRF token validation failed
A modifying OData request (POST, PUT, PATCH, or DELETE) returns HTTP 403 because CSRF token validation fails.
Likely root causes
- The client did not fetch and resend a valid X-CSRF-Token.
- The token was fetched in one HTTP session but the modifying request did not reuse the corresponding cookies/session.
- A stale token is being reused after the server session changed.
What to inspect
- Fetch request headers — use X-CSRF-Token: Fetch.
- Fetch response — verify a token is returned and retain the session cookies.
- Modifying request — verify the same session/cookies and returned token are sent.
- /IWFND/ERROR_LOG for the exact backend/Gateway error.
Resolution path
- Fetch a fresh CSRF token from the same service/session before the modifying request.
- Persist and resend the related cookies together with the token.
- Do not hard-code or cache a CSRF token across unrelated sessions.
- Retest the full fetch-then-modify sequence in one session.
ERPClimb is an independent platform and is not affiliated with SAP SE.