Author Topic: WWE Customization  (Read 576 times)

Offline Ilayaraaja

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
WWE Customization
« on: July 13, 2020, 06:35:54 PM »
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

  • Newbie
  • *
  • Posts: 47
  • Karma: 1
Re: WWE Customization
« Reply #1 on: July 13, 2020, 07:02:20 PM »
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

  • Newbie
  • *
  • Posts: 47
  • Karma: 1
Re: WWE Customization
« Reply #2 on: July 13, 2020, 07:07:06 PM »
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: 4
  • Karma: 0
Re: WWE Customization
« Reply #3 on: July 13, 2020, 07:37:47 PM »
Hi gen_rtfm,

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

Offline Ilayaraaja

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

The issue has resolved after configuring CORS settings.

Thanks for your suggestion.

Offline gen_rtfm

  • Newbie
  • *
  • Posts: 47
  • Karma: 1
Re: WWE Customization
« Reply #5 on: July 13, 2020, 08:52:06 PM »
Glad to hear you solved it!

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