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

You are not logged in.

Announcement

#1 2022-02-11 17:43:00

1010
New member
Registered: 2022-02-11
Posts: 3

Can not handle CORS on IIS

Hi,
I installed the Live Helper Chat (Laravel version: h t t p s://github.com/LiveHelperChat/livehelperchat_laravel ) and followed the istruction, but in  Widget embed code (new) i get "from origin '***' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." error. i used the suggested .htaccess under the lhc_web directory. also convert/change/add .htaccess settings to web.config but seems there is a conflict here. (IIS pointed to laravel public folder and other livehelperchat_laravel insatllation instructions followed)
any idea to resolving this issue would be appreciated

Last edited by 1010 (2022-02-11 18:34:21)

Offline

#2 2022-02-11 20:37:30

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

Re: Can not handle CORS on IIS


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

#3 2022-02-11 21:00:07

1010
New member
Registered: 2022-02-11
Posts: 3

Re: Can not handle CORS on IIS

Thank you Admin for your quick response. i have read above suggestion and tried them. let me ask my question in another way. does even .htaccess call by LHC routes on Windows server when IIS manage web server routes? because seems when your web server is IIS, the .htaccess files won't call. ( i added some redirect rules in .htaccess and they didnt work)

Offline

#4 2022-02-11 21:30:15

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

Re: Can not handle CORS on IIS

I'm sorry but I just know Linux for the servers smile


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

#5 2022-02-12 11:08:51

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

Re: Can not handle CORS on IIS

For nginx and apache https://github.com/LiveHelperChat/liveh … f_examples related config have to be applied. How to get it working under IIS and add CORS header requirement that's your part to solve.

Offline

#6 2022-03-10 22:01:58

1010
New member
Registered: 2022-02-11
Posts: 3

Re: Can not handle CORS on IIS

Just for anyone who may have this problem. if your web server is IIS and have your LHC application in subfolders (like LHC in Laravel) then in IIS you need to convert livehelperchat\lhc_web folder to an application. and convert  lhc .htaccess to web.config equivalent for this new application, this way IIS knows to handle the LHC routes with child web.config not parent application/site web.config.

Offline

#7 2022-08-25 11:22:06

SeaHunter
New member
From: Usa
Registered: 2022-06-06
Posts: 3

Re: Can not handle CORS on IIS

For anyone else who may encounter the same issue, it appears that the IIS on the remote server was missing this module.

Offline

Board footer