Authorization header from Postman not visible in Laravel -
i trying test laravel php application middleware using postman. application using tymon jwt auth , according docs should set authorization header:
authorization: bearer {yourtokenhere}
so, i've added authorization header postman so:
but response app token not provided.
it's strange because:
- if attach same token url in postman, token visible app (status 200 ok , no error saying token_not_provided).
- if test app in phpunit instead of postman , provide token either in header or in url, ok.
- debugging raw postman request in fiddler shows has authorization header, visible below:
i tried deleting other 2 headers postman didn't improve anything. seems set fine, it's not working, why?
is server on apache? if yes,the following checklist helpful
you should configure
.htaccess
inside public folder. refer thisyou should edit
apache2.conf
filesudo vi +164 /etc/apache2/apache2.conf
, change<directory /var/www/> options indexes followsymlinks allowoverride require granted
- then
sudo a2enmod rewrite
- restart apache
sudo service apache2 restart
- then
this work!
Comments
Post a Comment