laravel-paystack icon indicating copy to clipboard operation
laravel-paystack copied to clipboard

Access-Control-Allow-Origin

Open diadal opened this issue 5 years ago • 6 comments

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.

diadal avatar Mar 12 '19 08:03 diadal

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

aeadedoyin avatar Mar 13 '19 11:03 aeadedoyin

never mind fund way out

diadal avatar Mar 13 '19 14:03 diadal

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

lorddubbs avatar Oct 02 '19 01:10 lorddubbs

Guys Please can we get the fix

mavicDesigns avatar Oct 08 '19 17:10 mavicDesigns

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

lorddubbs avatar Oct 14 '19 11:10 lorddubbs

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.

aeadedoyin avatar May 27 '20 16:05 aeadedoyin