Debug auth headers being stripped
-
Hey,
Great plugin btw, This might be common knowledge to most / available after a short google but I had a nightmare getting my local development server to stop stripping auth headers.
This small snippet in a test php file on your server could save minutes if not hours of debugging 401’s due to auth headers being stripped.
Might be worth adding into the readme, will show “[Authorization] => Bearer…” if the .htaccess rule has worked (as it didn’t initially my case locally):
$requestHeaders = apache_request_headers(); print_r($requestHeaders);
- The topic ‘Debug auth headers being stripped’ is closed to new replies.