(E): Access to XMLHttpRequest has been blocked by CORS policy

Modified on Tue, Feb 8, 2022 at 12:15 AM

Most probably this error happened because you are trying to send HTTP requests to Paytabs' side using front-end JavaScript.

 

In this article you will be going to know about:


How to investigate the reason that caused this error?


You can check this error from your browser console as shown below


 


Reason #1: A Frontend HTTP request sent to Paytabs


That means that you are using frontend JS to send/receive HTTP requests/responses within your integration with PayTabs. Which is not supported by PayTabs for higher security purposes.

In this case, you will have to use your backend to perform those sending/receiving HTTP requests/responses actions.


To know more about our various integration methods which include backend packages and eCommerce plugins and more please check our How To Integrate With Paytabs solution article. 

 

 

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article