0

We have an API to retrieve an X-CSRF token into our SAP System using oData Provisioning.

Prior to the call, we retrieve an auth-token which works fine.

We use the token in the X-CSRF

Authorization: Bearer (Auth Token)
X-CSRF-Token: Fetch

The API always returns a 200 OK return.

The problem is, around 50% of the time the X-CSRF-Token is not included in the returned header

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Adam Harkus
  • 2,050
  • 2
  • 36
  • 64
  • 1
    Well either there is something going wrong with the call to retrieve the X-CSRF token and you have to solve it, or if this is expected behaviour write an if, fetch or whatever you prefer that says if you retrieve no token that you have to call it again. – mrdeadsven Jan 13 '20 at 15:52
  • Yes the retry seems to have provided a workaround. – Adam Harkus Jan 14 '20 at 16:11

0 Answers0