简体   繁体   中英

get authorization header in cakephp at https

I am using Cakephp 2.3 I want to get the authorization header. I tried using this code:

$this->request->header('Authorization')

It does not show anything while using

$this->request->header('User-Agent')

HTTP_USER_AGENT shows the data. Tried using the apache_request_headers() function, here also all the headers are displayed except the Authorization header. Am I missing something?

I found an answer to the question. If this can help anyone, here is the reference that helped me in solving my problem. The actual logic was the Apache Server, It was hiding the Authorization header for security reasons.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM