-
Notifications
You must be signed in to change notification settings - Fork 11.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load livechat since updating to 3.3.0 due to X-Frame-Options: sameorigin #17786
Comments
@jakguru let me get this straight.. Also, have you set up the following setting? I'll be waiting for your feedback. |
No, that is not correct. I'm trying to reach https://{domain}/livechat from one of my websites, and i'm getting an error on the console about being unable to load an iframe due to the In order to ensure that the issue was caused by the application and not by any intermediary service such as a reverse proxy, i ran the |
Also, I've tried the "Livechat Allowed Domains" option and it didn't change anything, even after clearing cache and cookies in the browser (or just making a fresh |
@jakguru Did you find any solution for this, I am facing the same issue here? |
I disable de option "Restrict access inside any Iframe" and refresh the page with my widget and works fine. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
thank you @pazande, I had the same issue, but only on Brave browser (see RocketChat/Rocket.Chat.Livechat#531). EDIT: wrong testing, it still doesn't work |
First you need to determine your Web server type and add the correct headers. |
Refer to the consequences of punctuatingbug |
Thanks! It works for me. So my working setup is: X-Frame-Option enabled and set to sameorigin + "Livechat Allowed Domains" set to domain name (without "http://", just name). And it works! |
Description:
Today I updated my server from 2.9.x to 3.3.0. After finishing the upgrade, I navigated to one of the websites which utilizes the Live Chat (now Omnichat) integration, only to find a grey square (of an iframe which didn't load) where the Live Chat button should have been. I looked in the console and found an error caused by the
X-Frame-Options: sameorigin
header.I tried specifically adding the hostname of the website(s) which utilize the Livechat, but that did not make any difference. I confirmed that the issue was caused by Rocket Chat and not by an intermediary by running a
curl
request directly from the server:Which responded with:
Note: I have been able to mitigate the issue through the use of Cloudflare's Workers, which allows me to remove the header. This does resolve the issue, however I would prefer to not have to pay the $5/month to ensure that my self-hosted livechat is working correctly.
Steps to reproduce:
Expected behavior:
If there are domains configured, then the
X-Frame-Options
should reflect those domains. Otherwise it should not be presentActual behavior:
X-Frame-Options: sameorigin
is returnedServer Setup Information:
The text was updated successfully, but these errors were encountered: