ruby on rails - redirect_to custom http header -


On my current project, http need to set the custom header header while redirecting to the default auth. Can I direct redirect_to for custom headers?

Thank you.

request to set custom HTTP headers within a controller of the object Header method can be used:

  request.headers ['foo'] = 'bar'  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -