How to use Cookie-based authentication in REST API invoked by an external application

Hi all,
I’m using OJS version
I would like to invoke the REST API using the Cookie-based authentication from an external application, to avoid security issue.
I searched on this forum, google, etc but I did not find how to get/generate the CSRF Token and use it as Header parameter (X-CSRF-TOKEN) in my POST or PUT request in the application.

Maybe I’m missing something.

Could you help me on this please?

Thanks a lot,

Hi Marcella, I see that @asmecher solved this that is about CSRF Token too.
Maybe he can help you.
Best regards

Hi @bolelligallevi,
I’ve already read this thread but it was nor helpful for me.

Thanks in any case,