Using Truenas Restful API with Reactjs App

gelai_726

Cadet
Joined
Oct 26, 2021
Messages
1
Hi, I am new on using truenas api, and I am building an application just to get all the details of my servers in one page. When working with postman, api's works fine, but when using it with react I always get unauthorized. Hope someone could help me what seems to be the problem.
 

Attachments

  • Screen Shot 2022-10-07 at 9.14.52 PM.png
    Screen Shot 2022-10-07 at 9.14.52 PM.png
    28.2 KB · Views: 168
  • Screen Shot 2022-10-07 at 9.15.43 PM.png
    Screen Shot 2022-10-07 at 9.15.43 PM.png
    83.5 KB · Views: 170
Top