HTTPCall error in javascript after using inspector


I am trying to replicate an HTTP Post, and having used the Postman Inspector, I managed to execute the call in Postman. But when I try to do it in JavaScript via Code snippet, I get an authentication error (see attached image). There must be a token (not in the cookies) that identifies the user with whom I make the call, which the Postman Inspector has been able to reproduce, but I lose it when I pass it to the code.

Can you please help me? Any idea?

Thank you very much! Best regards!