Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Ilayaraaja on July 13, 2020, 09:35:54 AM
-
Hi Everyone,
I am trying to dial a call from custom page which is displayed inside WWE application and i am getting below CORS error while invoking api request,
Access to XMLHttpRequest at 'http://192.168.1.97:8090/api/v2/me' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Please help me on resolving this error.
Thanks..
-
Are you invoking the xmlhttprequest from a local script or one published on a web server?
Origin null indicates to me that the problem is that your invocation is made from an undefined host so I'd try either setting the host (if possible) in request headers or publishing the script to a web server so the origin is populated in the request.
Br
Skickat från min Mi MIX 3 5G via Tapatalk
-
I'm not that familiar with cors configuration, you might need to look into that as well on the receiving web service side so the request is permitted by the server...
Skickat från min Mi MIX 3 5G via Tapatalk
-
Hi gen_rtfm,
Thanks for your response and my custom page is hosted on web server only.
-
Hi gen_rtfm,
The issue has resolved after configuring CORS settings.
Thanks for your suggestion.
-
Glad to hear you solved it!
Skickat från min Mi MIX 3 5G via Tapatalk