I am implementing Paypal Express using omnipay in Laravel 4. Status code: 302 found when my site try to redirect to paypal.
Error:
XMLHttpRequest cannot load https://www.sandbox.paypal.com/xxxxxxxx. No 'Access-Control-Allow-> Origin' header is present on the requested resource. Origin 'http://www.example.com' is ??> therefore not allowed access.
Actually I found that if I remove the following Jquery header in my purchase.blade.php it will work normally. I am using the Controller to submit the call to paypal (Not ajax call).
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
However, I need Jquery. Any idea or workaround??
Thanks