Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel Inertia Vue3 Cors error #190

Open
eokwukwe opened this issue Aug 31, 2024 · 1 comment
Open

Laravel Inertia Vue3 Cors error #190

eokwukwe opened this issue Aug 31, 2024 · 1 comment

Comments

@eokwukwe
Copy link

eokwukwe commented Aug 31, 2024

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.

@Kawesom
Copy link

Kawesom commented Sep 10, 2024

Multiple users? Cus otherwise why would you use auth("web") instead of just auth() or Auth::

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants