Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

johnie55's avatar

How do I fix CORS ERROR on paypal javascript API?

I am trying to integrate paypal checkout using the javascript code provided on their documentation but I keep getting this error I am using php/laravel hence the variables. Please help how to fix this. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.paypal.com/xoplatform/logger/api/logger. (Reason: CORS request did not succeed).

0 likes
1 reply

Please or to participate in this conversation.