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

Authorization header not found #510

Closed
alxetd opened this issue Dec 11, 2019 · 1 comment
Closed

Authorization header not found #510

alxetd opened this issue Dec 11, 2019 · 1 comment

Comments

@alxetd
Copy link

alxetd commented Dec 11, 2019

Hello,

I'm trying to implement an authentification for a vuejs frontend with a laravel aplication. I followed the steps for using this package but I still have an issue.
From the backend I get this:
image
image
When testing with postman it seems ok.

My code for the login is this:
image
I added some logs here:
image
But here there is no Authorization header.
image
Although in the network tab I see it:
image

Maybe it is something I don't see. Any ideas?
Sorry if this is not the right place to ask.

Thanks,

@alxetd alxetd closed this as completed Dec 19, 2019
@kfelix
Copy link

kfelix commented Apr 30, 2021

@alxetd you need to add "Authorization" to the exposed_headers array in the Laravel file config/cors.php
Like this 'exposed_headers' => ['Authorization'],

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