Chat trigger CORS not working

I built a chatbot with N8N. I want to embed it on my own website and prevent other websites embedding it.
I set up CORS on N8N, but I can still embed on other websites like W3school.
Did I make any mistake?

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:

Version 1.40.0
database: sqlite
executions_process: own
docker
ubuntu

I cannot say for sure this is the answer, but I did read over the documentation for this node and does not provide clear context for CORS functionality or context.

But I found something. According to this, the result of his CORS issue allowed the entire chatbox to appear minus the send box.

Could you confirm that even your chat send form is still enabled on other hosts?

Yes, currently the chatbot can be embedded anywhere and function anywhere.
But I only want it to be embedded and working on my own website which is skillup.day
As you can see in these screenshots, the chatbot can be embedded on other sites like w3school.




1 Like

You figured out the issue?

May you describe the solution for others?

You can then mark your answer as solution.

I haven’t figured out yet. I think it is n8n’s issue. There must be a bug.

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