cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
531
Views
1
Helpful
1
Replies

SNA 7.4.1 API - Post failed

nir-r
Level 4
Level 4

Hello,

When I'm trying to send post (for example add host group) to SNA 7.4.1 API, I received 401 unauthorized error.

All get requests are fine. Authentication is passed and cookies are the correct one when I tried to post.

Is there something I should enable it terms of permissions?

 

1 Reply 1

nir-r
Level 4
Level 4

I found the answer, for new versions there is a need to add http header X-XSRF-TOKEN with authentication cookie 

XSRF-TOKEN value.