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
]]>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/