Custom http header not reaching the application

terjetyl's Avatar

terjetyl

15 Jul, 2012 11:01 PM

I am adding a custom http header ("TOKEN_HEADER") using jquery for some ajax requests. This is working perfectly ok locally but not on my deployed site. Through logging I can see that this key does not get through to the server. Are some of the headers stripped away?

  1. 1 Posted by terjetyl on 16 Jul, 2012 05:11 PM

    terjetyl's Avatar

    Changed the token key to "authtoken" and then it passed.

  2. Support Staff 2 Posted by friism on 16 Jul, 2012 05:15 PM

    friism's Avatar

    That's pretty strange - we're not blocking request headers on purpose, but we'll take a look.

    Michael

  3. 3 Posted by Niels on 18 Jul, 2012 11:14 AM

    Niels's Avatar

    Just to follow up on this. At the moment we do not support underscores in headers and that was why your first custom http header did not go through. So as long as you do not use underscores, you are good.

  4. Niels closed this discussion on 18 Jul, 2012 11:14 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

01 Oct, 2014 07:29 AM
30 Sep, 2014 10:03 PM
30 Sep, 2014 04:47 AM
30 Sep, 2014 04:47 AM
28 Sep, 2014 10:45 AM