3CX webclient i-frame Chrome 401 Unauthorized

Status
Not open for further replies.

totoro86

Joined
May 20, 2018
Messages
1
Reaction score
6
I would like to use an iframe of the 3CX webclient in my website. This iframe works fine on Firefox, Edge and Internet Explorer but doesn't work on Chrome (the iframe appears but I can't login). When I go to the console on Chrome the error is:

Failed to load ressource: the server responded with a statuts of 401 (Unautorized)

When I go in the Network tab, a xhr file is red, this file is webclient/api/MyPhone, here is the capture of the header file error :
XT8n1.png


My iframe works on Chrome when I create a page in the same domain of the 3CX Server. So the problem is all about cross domain origin (CORS).

I noticed that when I try to do an iframe of the 3CX Web Console Management, I also can't login and here the file error is /api/CurrentUser so it looks like Chrome won't load every files from api/.

I tried to allow Cross domain origin in the nginx conf file but it doesn't work. It looks like from the chrome console that the error come from the polyfills.js file or may be the main.js file :

vinTF.png

Thank you in advance to any one who may be able to help me fix this problem.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,885
Messages
589,547
Members
164,745
Latest member
Herm77