cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to make POST request to NW Gateway Service using ODataService Action block

Former Member
0 Kudos

Hi,

I am trying make a HTTP POST request call to the NW Gateway Service(OData) using the ODataService action block.

I am getting following error

  • [INFO] ODataService Action: xsrfid response status code is 400 and status message is Bad Request
  • [INFO] ODataService Action: response status code is 403 and status message is Forbidden

I learnt from my initial research that, I need to get the x-csrf-token from the NW GW OData Service by sending an initial GET request with HTTP Request Header x-csrf-token: Fetch.

And then pass the x-csrf-token received from the previous call as a request header in the subsequent POST request to the NW GW service. But I couldn't find a way to set the request headers in the OData Service Action block.

I don't know if there is a way to get around this problem.

Any help is highly appreciated.

Accepted Solutions (0)

Answers (0)