Yes, it is possible, but not simple. It require some modifications and resolving login procedure.
1. So, you must have solution for auth users for all subdomains.
2. Add
- Code: Select all
$.ajaxSetup({xhrFields: {
withCredentials: true
}});
in all subdomains.
3. Set `Access-Control-Allow-Origin` in `.htacces` for ac instalation domain
- Code: Select all
<IfModule mod_headers.c>
SetEnvIf Origin "http(s)?://((www\.)?((test|beta|mobile|forum\.)?domain.pl|localhost)$" AccessControlAllowOrigin=$0
Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
Header set Access-Control-Allow-Credentials true
Header always set Access-Control-Allow-Methods "POST, GET, PUT, OPTIONS, PATCH, DELETE"
Header always set Access-Control-Allow-Headers "X-Accept-Charset,X-Accept,Content-Type"
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L,E=HTTP_ORIGIN:%{HTTP:ORIGIN}]
</IfModule>
4. In Configuration section set `Base URL` with domain.
5. Giphly finding: Add in your `arrowchat/includes/js/arrowchat_core.js` method: `loadGiphy` section `a.ajax({` add
- Code: Select all
xhrFields: {
withCredentials: false
},
or cry, that you don't have knowledge to unpack script.
6. Add this in other sections, that need `withCredentials: false`
7. I don't remember, that are all modifications