cancel
Showing results for 
Search instead for 
Did you mean: 

Why the business rules Invoke Rule Service need cookies?

SamueleBarzaghi
Participant
0 Kudos

Hi,

The invoke rule service need the cookies returned by the get token request otherwise we get http response 200 with body:

"Note: Your browser does not support JavaScript or it is turned off. Press the button to proceed"

Why the invoke rule service need the cookies?

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

qmacro
Developer Advocate
Developer Advocate
0 Kudos

This is because the CSRF token is only valid in the context of the response in which it was received, which is described by the cookies that were sent in that response. There's a section ("Avoiding the gotcha") in my post on https://blogs.sap.com/2018/01/14/discovering-scp-workflow-instance-initiation/) in my Discovering SCP Workflow series (http://pipetree.com/qmacro/blog/2018/01/16/discovering-scp-workflow/). It is about Workflow rather than Business Rules, but it's the same procedure (use of CSRF tokens) and the same concept applies.

Answers (1)

Answers (1)

SamueleBarzaghi
Participant
0 Kudos

Hi DJ Adams,

Clear, thank you