ruby on rails - request.headers['HTTP_AUTH_TOKEN'] does not work for https server -


my code try read auth_token headers in rails.

def authenticate_through_header   custom_header_value = request.headers['http_auth_token'] end 

this not work https server works http server.

any ideas?

it turns out need use key http_x_auth_token in order value. , need prepend x- custom headers, otherwise web server won't able recognize custom headers.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -