Cashierstream is a simple Spark alternative written for Laravel Jetstream, with the super-power of tracking plan quotas, like seats or projects number on a per-plan basis
Why use Redirect instead Inertia::location() ?
Why use response('', 409)->header('X-Inertia-Location', $url) if
response('', 409)->header('X-Inertia-Location', $url)is equals Inertia::location($url)?
Why the $asResponse ? if
Why use
Redirect
insteadInertia::location()
? Why useresponse('', 409)->header('X-Inertia-Location', $url)
ifresponse('', 409)->header('X-Inertia-Location', $url)
is equalsInertia::location($url)
? Why the$asResponse
? ifAlways goes return:
Redirect::to($url)
.Bad things can happen if we combine
$inertia.visit
with: https://github.com/renoki-co/jetstream-cashier-billing-portal/blob/be606052b5b0ccb952e81313a4d7f119342c74d2/src/Http/Controllers/Inertia/BillingController.php#L41What to do to prevent evetuals cors erros ?
Redirect::to($url)
works in your installation ?