CORS and domains issues #2000
-
Hi remdex. Yesterday I discovered an attack to my server: someone stolen from the page source code the Live Helper Chat Embed code and pasted it in a busy community. From that moment I have my server busy of visits not mine. Looking at the live helper chat guide I don't find how can I authorize multiple domains or.. I can found to use the * but this allow anyone to place my code in all external domains mine. I'm also using a Plesk Panel who complicate a bit things because my server use Apache but also nginx for HTTP2. MY QUESTION TO YOU: I edited the .htaccess file inside live helper chat
Now if I visit www.peopleinside.it the chat widget is correctly showed. If I visit https://helpdesk.peopleinside.it/it/ the widget is not showed but is showed if I open this single window in incognito. Now that I removed the *I have this issue, visitor that from peopleinside.it go to helpdesk.peopleinside.it will not see the live chat widget. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The strange think is that if you visit www.peopleinside.it then go on footer and click on the link marcoborla.com then also on that site click on marcoborla.it the widget always work. If you go on peopleinside.it and under the top menu you goes with the mouse over the contact menu voice then click ticket, when a new tab is opened at helpdesk.peopleinside.it the widget is not visible. Seems the issue is created if visitor move from a domain to a subdomain. How can I resolve this issue? Here is a video: |
Beta Was this translation helpful? Give feedback.
-
This screenshot may help you to answer and help me: helpdesk.peopleinside.it As you can see this is the developer tools console, I'm on peopleinside.it but the console show that the live chat has been blocked because is not helpdesk.peopleinside.it why I get this error if both peopleinside.it and helpdesk.peopleinside.it are allowed to show the widget chat? How can I resolve? I see the console error: ChunkLoadError Looking in internet I find How to Fix Chunk Load Error As a user If you are encountering this error as a user of an application, the most simple way to resolve it is to clear your browser cache (and also restart it for good measure) and try again. If the error was because your browser had cached older files, this should fix the issue. But if the problem is due to the chunk files, there’s nothing you can do except alert the application developers and wait till the problem has been fixed. https://rollbar.com/blog/javascript-chunk-load-error/# website that stole my LHC code link |
Beta Was this translation helpful? Give feedback.
-
I found hot to resolve.
I found this from https://www.a2hosting.com/kb/developer-corner/apache-web-server/turning-off-caching-using-htaccess/ |
Beta Was this translation helpful? Give feedback.
I found hot to resolve.
The following code placed in htaccess file resolve the issue