laravel-paystack
laravel-paystack copied to clipboard
Access-Control-Allow-Origin
Access to XMLHttpRequest at 'https://checkout.paystack.com/xxxxxxxxxxxxx' (redirected from 'https://test.dev/') from origin 'https://test.dev/' 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.
As we patiently wait for @unicodeveloper to take a look at some of the amazing PRs and update this library. This (HTTP Requests) should be handled in the back-end to avoid overkill. See HERE
never mind fund way out
@diadal I'm getting this error now, what's the fix?
Guys Please can we get the fix
It's a Cors error. Solution is here https://stackoverflow.com/questions/43565877/no-access-control-allow-origin-header-laravel-5-4
Hi @diadal, @Mavicdesigns
Install this library and follow the steps. https://github.com/fruitcake/laravel-cors
Do well to update to Laravel 7. Comes with CORS config out of the box.