CSRF Token - I'm running out of options

Hello n8n community,

I’ve really been struggling, but I haven’t been able to connect n8n to the Paperless API. The issue is with the CSRF token. I managed to retrieve the token from the URL using an HTTP Request and then extract it from the HTML code, but the subsequent POST HTTP Request just doesn’t work no matter what I try.

My system consists of Docker containers for n8n (on-premise) and Paperless. Both containers communicate within a bridge network. I’ve attempted dozens of different configurations, yet the system consistently returns a 403 error and indicates something is wrong with the cookies. I’m slowly running out of options.

If anyone has successfully managed to connect to the Paperless API, I would be extremely grateful for any practical tips or guidance!
Regards
L.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system: