" /> WWE Customization - Genesys CTI User Forum

Author Topic: WWE Customization  (Read 1912 times)

Offline Ilayaraaja

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
WWE Customization
« on: July 13, 2020, 09:35:54 AM »
Advertisement
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..

Offline gen_rtfm

  • Full Member
  • ***
  • Posts: 114
  • Karma: 4
Re: WWE Customization
« Reply #1 on: July 13, 2020, 10:02:20 AM »
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


Offline gen_rtfm

  • Full Member
  • ***
  • Posts: 114
  • Karma: 4
Re: WWE Customization
« Reply #2 on: July 13, 2020, 10:07:06 AM »
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


Offline Ilayaraaja

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: WWE Customization
« Reply #3 on: July 13, 2020, 10:37:47 AM »
Hi gen_rtfm,

Thanks for your response and my custom page is hosted on web server only.

Offline Ilayaraaja

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: WWE Customization
« Reply #4 on: July 13, 2020, 10:42:39 AM »
Hi gen_rtfm,

The issue has resolved after configuring CORS settings.

Thanks for your suggestion.

Offline gen_rtfm

  • Full Member
  • ***
  • Posts: 114
  • Karma: 4
Re: WWE Customization
« Reply #5 on: July 13, 2020, 11:52:06 AM »
Glad to hear you solved it!

Skickat från min Mi MIX 3 5G via Tapatalk