unicodeveloper / laravel-paystack

:credit_card: :package: :moneybag: Laravel 6, 7, 8, 9, 10 and 11 Package for Paystack
https://paystack.co
MIT License
612 stars 314 forks source link

Access-Control-Allow-Origin #72

Open diadal opened 5 years ago

diadal commented 5 years ago

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.

aeadedoyin commented 5 years ago

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

diadal commented 5 years ago

never mind fund way out

lorddubbs commented 5 years ago

@diadal I'm getting this error now, what's the fix?

mavicDesigns commented 5 years ago

Guys Please can we get the fix

lorddubbs commented 5 years ago

It's a Cors error. Solution is here https://stackoverflow.com/questions/43565877/no-access-control-allow-origin-header-laravel-5-4

aeadedoyin commented 4 years ago

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.