Skip to content

Laravel Inertia Vue3 Cors error #190

@eokwukwe

Description

@eokwukwe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions