kike | 2022-08-16 10:05:39 UTC | #1
Good morning,
I have to perform a data action to retrieve a token from SAP, but they only tell us that we have to pass this through the header X-CSRF-TOKEN with FETCH value, they tell us that from postman it is returned automatically and it is true, but in genesys how to proceed?
A greeting
Jason_Mathison | 2022-08-16 11:18:39 UTC | #2
Hi kike,
Can you either show / attach examples of the postman requests that you are using or provide a link to the SAP documentation for the endpoints that you are using?
--Jason
Jason_Mathison | 2022-08-16 11:50:23 UTC | #3
Is this the API that you are attempting to use? https://blogs.sap.com/2021/06/04/how-does-csrf-token-work-sap-gateway/
If so, we currently can not support this as we do not support getting at the response headers or cookies. I would suggest voting for this idea and adding your use case if it does not already have it. https://genesyscloud.ideas.aha.io/ideas/OTB-I-242
--Jason
system | 2022-09-16 11:51:00 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 15899