cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Gateway Client error: "CSRF token validation failed"

raffinkira
Participant
15,276

Hi all,

I am using Gateway Client to post data, however, I got an error "CSRF token validation failed".

Usually, Gateway Client would automatically fill the CSRF token and I saw it was in the header, but this time it failed.

Does anyone know anything about that?

Regards,

Ming

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
mustafa_74199
Participant
0 Kudos

Could you please explain the meaning of this sentence?

" You have to add the header(‘X-Requested-With’ with a value of ‘X’)  "

Answers (1)

Answers (1)

raffinkira
Participant

Finally, I got the reason of this.

I have to use HTTPS call because of server side setting, if HTTP was used, then CSRF token failed issue happened.