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:

enter image description here

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:

enter image description here

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 this

  • you should edit apache2.conf file

    sudo 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

this work!


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -