Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
For allow external website to have the new widget (currently in Beta - January 2020) you need to add an .htaccess file on your live chat root folder.
With this you can allow specific website:
Header always Set Access-Control-Allow-Origin "http://website.ext"
Header always Set Access-Control-Allow-Methods: "GET, POST, OPTIONS, PUT, DELETE"
Header always Set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, API-Key, Authorization"
Or all website.
Header always Set Access-Control-Allow-Origin "*"
Header always Set Access-Control-Allow-Methods: "GET, POST, OPTIONS, PUT, DELETE"
Header always Set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, API-Key, Authorization"
If you still have issue maybe your server configuration is blocking the request, check you Apache configuration or your server configuration.
This external article maybe can give some more informations: https://www.ipragmatech.com/enable-cors-using-htaccess/
PeopleInside - Live helper chat - free limited forum support!
For commercial support or GitHub [see FAQ here]
If you want to support this open source project, just donate [see support page]
Something wrong with the forum? [contact a superhero]
Offline
For multiple domains this works for me
SetEnvIf Origin "^http(s)?://(.+\.)?(domain\.ext|subdomain\.domain\.ext)$" origin_is=$0
Header always set Access-Control-Allow-Origin %{origin_is}e env=origin_is
but finally this code create issue if visitor visit three different address, subdomains also if allowed widget can be not loaded.
I suggest to use the code for allow all domains:
Header always Set Access-Control-Allow-Origin "*"
Header always Set Access-Control-Allow-Methods: "GET, POST, OPTIONS, PUT, DELETE"
Header always Set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, API-Key, Authorization"
Now an official guide is also available here: https://doc.livehelperchat.com/docs/int … her-domain
Last edited by PeopleInside (2020-04-02 12:27:28)
PeopleInside - Live helper chat - free limited forum support!
For commercial support or GitHub [see FAQ here]
If you want to support this open source project, just donate [see support page]
Something wrong with the forum? [contact a superhero]
Offline