N8N Hosted Chat

Describe the problem/error/question

Trying to embed N8N chat on Appsmith

What is the error message (if any)?

osc.app.n8n.cloud refused to connect.
Refused to display ‘https://osc.app.n8n.cloud/’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’.

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

hello @Antony_Rappai

Have you configured the Allowed Origins Option to your website in the Chat node?

hi yes i did, put CORS as * , is that what you mean?

This is the text i received from appsmith bot

Hello, I’m SmithBot, your Appsmith support expert! It seems like you’re facing
an issue with embedding n8n Chat due to the ‘X-Frame-Options’ header. This is a
common problem related to web security measures that prevent your content from
being embedded into iframes on other origins. The error you’re seeing indicates
that the ‘X-Frame-Options’ header is set to ‘sameorigin’ on the n8n server,
which means it can only be embedded within the same domain. To resolve the
issue, you would need to configure the n8n server to allow embedding on other
origins. Here’s what you can try: - If you have control over the n8n server,
remove the ‘X-Frame-Options’ header, or set it to ‘ALLOW-FROM
https://yourappsmith-instance.com’ where yourappsmith-instance.com
[http://yourappsmith-instance.com] is the domain where you’re trying to embed
the n8n Chat. - Alternatively, if ‘Content-Security-Policy’ is used, you should
set it to allow framing using the ‘frame-ancestors’ directive. - If you are not
in control of the n8n server, you may need to contact their support to request
changes. Please verify if you have access to the n8n server configuration and
check if you can update these settings. If not, reaching out to n8n support
might be necessary. Let me know if you can make these changes or if you need
further assistance! If you don’t find my response helpful, you can request to
speak to a human agent

Hi i am still looking for some help on this , any clues ?