Set cookies only for exact host

Describe the problem/error/question

I run n8n on a subdomain. When I log in to n8n, various cookies are set.

  • rl_anonymous_id
  • rl_page_init_referrer
  • rl_page_init_referring_domain
  • rl_session
  • ph_phc_4UR*
  • rl_trait
  • rl_user_id
  • n8n-auth

When I look in the developer tools of my browser to see which domains the cookies are set for, I see the following:

  • n8n-auth is set for n8n.example.com
  • all others are set for example.com

What is the error message (if any)?

I have other services running under other subdomains, which sometimes interfere with the cookies. Can I change the scope of the cookies somewhere so that they are all set for n8n.example.com only, or is this expected behaviour?

I have already set the following configuration, but this has no effect on this:

    environment:
      - WEBHOOK_URL=https://n8n.example.com/
      - N8N_HOST=n8n.example.com

Information on your n8n setup

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

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:

Hi @markus656

Thanks for posting here and welcome to the community! :cupcake:

This is expected behaviour and you cannot modify these cookies - only disable them by setting N8N_DIAGNOSTICS_ENABLED to false.

You can find more about our telemetry tracking in our docs

Hope this helps! :raised_hands:

1 Like

Hello Ria. Thank you, that works!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.