0

I am trying to make a call to Riak cluster using a web service. I have observed that Riak web console is using http://localhost:8098/admin/cluster to make calls to the Riak. The problem is that when I try to execute a PUT command from Postman to http://localhost:8098/admin/cluster I have a 403 error message.

Does anybody confronted with this issue ?

AlexGo
  • 487
  • 4
  • 19

1 Answers1

2

You are not supposed to use the REST APIs used by Riak console. I've already answered your other question about it. HTTP error 403 Forbidden means you are not properly authenticated (and not authorized to call the API), i.e. you are not passing the right HTTP header. I believe Riak console uses a cookie to ensure the APIs are invoked from the console's context. Looking at Riak console requests, I can see that X-Csrf-Token is being passed.

vempo
  • 3,093
  • 1
  • 14
  • 16