Cant access PollUrl from mobile app because of CORS


#1

I successfully initiated a payment and get poollUrl in return, but when I want to poll the url from my mobile app, I am getting CORS Error

Access to XMLHttpRequest at 'https://www.paynow.co.zw/Interface/CheckPayment/?guid=2314e1ac-c947-49c8-82b1-1c2f3d63f82d' from origin 'http://localhost' 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.


#2

@tapiwajoel Can I assume you are using Ionic?

  1. What Http method are you using on the pollUrl ?
  2. What HTTP methods is your pre-flight check requesting for?