WaspW
Wasp9mo ago
38 replies
Obinna

Call custom api externally

I created a custom API that sends data to a database, and I want to call it from another application. I used fetch() to post the data, and got a 401 (unauthorized) as expected. I know I need to send a token or something in the header. How do I do that?
Was this page helpful?