A
A
Anton Shelestov2018-08-12 20:42:07
Laravel
Anton Shelestov, 2018-08-12 20:42:07

Why is cookie overwritten in laravel?

Hello.
There was an incomprehensible problem, there is a code:

....
        //$token = JWTAuth::fromUser($user);
        $token = 'tyt_user_token';
        return redirect()->route('social.auth.success')->cookie(
            'USER_TOKEN', $token, 525600
        );

Then I look in the browser console and see this:
5b70714a5b64a922724652.jpeg
Why is this happening and how to fix it?
Or what am I doing wrong?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2018-08-12
@ShelestovAnt

https://laravel.com/docs/5.6/responses - we study carefully.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question