Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2020-11-25 19:33:47

milatovskaja
Member
From: Belarus
Registered: 2020-11-16
Posts: 39

Problem with headers

Hello, guys. kiss
Faced an incomprehensible problem with ssl connections.
I posted chat on a subdomain.
Headers are transmitted without problems according to rule specified in .htacces,
but all this only works if chat works over http, if chat
switch to https then no headers are passed and i get error:

[== Undefined ==]
No 'Access-Control-Allow-Origin' header is present on the requested resource.

yikes yikes yikes
I think there is no rule for accessing static files.
I am unable to set server configuration because i am using virtul hosting and no have access, but i can change it via .htacces.
Guys help me solve this problem please, what else do i need to add to .htaccess to make it work nicely?

Offline

#2 2020-11-25 19:45:27

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Problem with headers

That's your server configuration problem. Please refer to
https://doc.livehelperchat.com/docs/int … her-domain

Nginx version
https://doc.livehelperchat.com/docs/ngi … ation-tips

Offline

#3 2020-11-25 19:53:40

milatovskaja
Member
From: Belarus
Registered: 2020-11-16
Posts: 39

Re: Problem with headers

remdex wrote:

Yes! Yes!
I read this,
but i do not have access to server configuration.
...i have virtual hosting and i can only change htacces.
I added a rule for headers: header always Set Access-Control-Allow-Origin and etc,
but i can't change anything else more. cry cry

Offline

#4 2020-11-25 20:53:59

milatovskaja
Member
From: Belarus
Registered: 2020-11-16
Posts: 39

Re: Problem with headers

issue resolved
rather not resolved cry cry cry
host works on nginx an rules htacces don't apply.

Offline

#5 2020-11-26 08:41:48

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Problem with headers

but i do not have access to server configuration.
...i have virtual hosting and i can only change htacces.
I added a rule for headers: header always Set Access-Control-Allow-Origin and etc,
but i can't change anything else more. cry

If you have no server full access control you can have issue, try to contact your hosting.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#6 2020-11-27 08:52:47

milatovskaja
Member
From: Belarus
Registered: 2020-11-16
Posts: 39

Re: Problem with headers

PeopleInside wrote:

If you have no server full access control you can have issue, try to contact your hosting.

techsupport - is stupid... big_smile big_smile big_smile
...they don't even know what the hosting is running on, they think that it is on apache and assure that everything should work. devil devil devil

tell me which php file script generates?
for example: design/defaulttheme/js/widgetv2/index.js?
i try add in php.

[== HTML ==]
<?php
header('Access-Control-Allow-Origin: *'); 
?>

only you tell me what this script generates?

Offline

#7 2020-11-27 09:12:17

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Problem with headers

I don't know nginx, I'm with Apache so I cannot help much I think.
You should try to search on the web maybe or let's see if remdex, the developer can help you more.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#8 2020-11-27 09:23:28

milatovskaja
Member
From: Belarus
Registered: 2020-11-16
Posts: 39

Re: Problem with headers

PeopleInside wrote:

I don't know nginx, I'm with Apache so I cannot help much I think.
You should try to search on the web maybe or let's see if remdex, the developer can help you more.

some kind of stupid idea - everyone hosts providers switches to nginx.
and user cannot change settings for virtual host, now nginx configuration is common for whole server.
earlier on apche this could be done through .htacces.

Offline

#9 2020-11-27 10:28:14

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Problem with headers

If you have issue on your hosting you can try the hosted version of live helper chat:
https://livehelperchat.com/order/now or setup a VPS with your self-hosted live chat


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#10 2020-11-27 10:48:37

milatovskaja
Member
From: Belarus
Registered: 2020-11-16
Posts: 39

Re: Problem with headers

PeopleInside wrote:

If you have issue on your hosting you can try the hosted version of live helper chat:
https://livehelperchat.com/order/now or setup a VPS with your self-hosted live chat

Yes, that's a good idea smile
but how to implement chat with a subdomain on nginx on my virual host?  smile
I have a little experience in development, you just tell me what script handles and i'll try to insert a header.

Offline

#11 2020-11-27 10:50:53

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Problem with headers

Sorry but as told I have no idea about nginx


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#12 2020-11-27 11:13:49

milatovskaja
Member
From: Belarus
Registered: 2020-11-16
Posts: 39

Re: Problem with headers

PeopleInside wrote:

Sorry but as told I have no idea about nginx

no no!!!
....you have nothing to apologize.
you are great and cool guys kiss kiss kiss
this is my provider - complete rubbish   mad  mad  mad

Offline

#13 2020-11-27 14:50:22

milatovskaja
Member
From: Belarus
Registered: 2020-11-16
Posts: 39

Re: Problem with headers

also i add this

[== PHP ==]
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, API-Key, Authorization");

in inex.php, but no result  hmm  hmm  hmm

Offline

#14 2020-11-27 17:43:17

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Problem with headers

Because headers are required for static js file not for php.

Offline

#15 2020-11-27 18:11:23

milatovskaja
Member
From: Belarus
Registered: 2020-11-16
Posts: 39

Re: Problem with headers

remdex wrote:

Because headers are required for static js file not for php.

yes.
i already did it out of despair cry cry cry
because i don't know how to start it.
and on server all statics are handled by nginx, and i do not have access to it.
techsupport doesn't want to change configuration either.
please help: how do i add a header to js?

Last edited by milatovskaja (2020-11-27 18:12:58)

Offline

Board footer