Apache strips down “Authorization” header

ساخت وبلاگ

Vote count: 0

This has been asked before, but. I'm trying to implement JWT token auth with PHP 7 on apache 2.4. The script (symfony) never sees the Authorization header.

I've read Apache strips down "Authorization" header and already added:

RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

to no avail. mod_rewrite is enabled and php loaded as module.

My simple test case is

curl --header "Authorization: Bearer eyJ0....." http://localhost/test.php

I'm totally lost as to what else could potentially be needed to get the Authorization header into php?

asked 31 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 418 تاريخ : يکشنبه 31 مرداد 1395 ساعت: 23:37