Skip to Content
author's profile photo Former Member
Former Member

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


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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.