Skip to content
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

CRM: Adding new customer #1596

Closed
haimiko opened this issue Dec 21, 2021 · 10 comments
Closed

CRM: Adding new customer #1596

haimiko opened this issue Dec 21, 2021 · 10 comments

Comments

@haimiko
Copy link

haimiko commented Dec 21, 2021

Freescout version: 1.7.24
CRM Version: 1.0.6

Issue: Adding new customer with FireFox will display the following error:

image

@freescout-helpdesk
Copy link
Contributor

Can you reproduce the issue on demo.freescout.net?

@haimiko
Copy link
Author

haimiko commented Dec 23, 2021 via email

@haimiko
Copy link
Author

haimiko commented Dec 23, 2021

This is the console error:

The loading of “https://mysite.com/customers/new?x_embed=1” in a frame is denied by “X-Frame-Options“ directive set to “DENY“.

@freescout-helpdesk
Copy link
Contributor

Your server sends “DENY“ in “X-Frame-Options“ header. You need to change it to "SAMEORIGIN".

@freescout-helpdesk
Copy link
Contributor

Try to put the following file into /app/Http/Middleware replacing existing ResponseHeaders.php

ResponseHeaders.zip

@haimiko
Copy link
Author

haimiko commented Dec 24, 2021

Thanks . Tried it but it's now sending "SAMEORIGIN" and "DENY" right after.
image

@haimiko
Copy link
Author

haimiko commented Dec 24, 2021

Fixed it by adding the add_header X-Frame-Options "SAMEORIGIN"; to my nginx config.

Thank you for the direction!

@haimiko haimiko closed this as completed Dec 24, 2021
@freescout-helpdesk
Copy link
Contributor

freescout-helpdesk commented Dec 25, 2021

It looks like in this case you will have issues when adding FreeScout chat and other widgets to the website.

Try the following:

proxy_hide_header X-Frame-Options;
fastcgi_hide_header X-Frame-Options;

Also see #3086 (comment)

@freescout-helpdesk
Copy link
Contributor

Ideally you should find out what (web server, hosting or some non-official module) adds X-Frame-Options header and get rid of this header.

@karrierekick-dev
Copy link

In my case, the generated symlink files in public/modules/ had a wrong path.

They should point to the corresponding module folder. For example: The Chat widget has a symlink "chat". When opening such a link you should be forwarded to the directory it is pointing to which should be "Modules/Chat/Public".

In my case the "chat" link pointed to "/html/support/Modules/Chat/Public"
I've edited the link using WinSCP and replaced the path with a relative one: "../../Modules/Chat/Public".

After that, everything works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants