Your n8n server is configured to use a secure cookie

Describe the problem/error/question

I have been fighting with this for 3 full days. I am sure it’s a rookie error. I know just enough to be dangerous.

I have installed N8N in various ways on a desktop initially running Ubuntu but not I put on Windows.

Can someone point me to a tutorial on properly setting up N8N so I can not only access it via another machine on my network but also outside my network?

I have in the past been able to get it to using a domain I have if I include port :5678. Ex: mydomain.com:5678. But also only on HTTP and not using HTTPS.

I have searched around and used various LLMs to help me walk through it but I am still stuck.

Any help would be highly appreciated.

What is the error message (if any)?

Your n8n server is configured to use a secure cookie,

however you are either visiting this via an insecure URL, or using Safari.

To fix this, please consider the following options:

  • Setup TLS/HTTPS (recommended), or
  • If you are running this locally, and not using Safari, try using localhost instead
  • If you prefer to disable this security feature (not recommended), set the environment variable N8N_SECURE_COOKIE to false

Share the output returned by the last node

Information on your n8n setup

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

Did you try setting the N8N_SECURE_COOKIE env variable? if so, how? maybe the way you are setting it is not getting picked up.

@netroy I did many times. I finally decided to deploy it on Render.com. I had that up and running in a few minutes.

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