laravel-paystack
laravel-paystack copied to clipboard
Laravel Inertia Vue3 Cors error
I am trying to use this package in a Laravel/Inertia Vue3 application and getting a CORS error for the redirect.
Here is my controller:
class PaystackController extends Controller
{
public function redirect()
{
return paystack()->getAuthorizationUrl(
['amount' => 220000, 'email' => auth('web')->user()->email]
)->redirectNow();
}
}
Anyone with a similar issue? How was it resolved?
NOTE: The project uses Laravel Breeze with the Sanctum
package for authentication.