php - Cross domain cookie preserved between Angular app (Laravel API) and Laravel Web ApplicationGet the solution ↓↓↓
Here is the problem,
We have a Laravel web application for logged in users. Also we have a wizard for creating content but on a different domain and in Angular. We have guest users who can come to the wizard, create content and when finished, they are redirected to the Laravel web page, where they can register or checkout.
How can this user be authenticated when redirected to the Laravel Web. Is there a way to safely transfer token, on use of a session.
I have tried session solutions, but I cannot get it to work. Session is stored on the API call, but when I come to the Laravel web page, session variable is empty.
I appreciate any help, with this solution or some other working :)
'api' => [ \App\Http\Middleware\EncryptCookies::class, \Illuminate\Session\Middleware\StartSession::class, 'throttle:60,1', // 'bindings', ],
People are also looking for solutions of the problem: filter_sanitize_string
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.