Loading...

Weirdness in Firebug with XHR 302/JSON Comments

Just discovered a strange bug in Firebug 1.7.1b1. It goes a little something like this:

Make an XHR request (in this case a POST) to a service (in this case a Spring authentication URL) that redirects to some other URL which itself provides a JSON body indicating success or failure of login.

So again, super simple:

  1. POST to URL A. This responds with a 302 to URL B.
  2. Browser auto-GETs URL B, which contains a JSON content body.

What Firebug sees, however, is this:

  1. POST to URL A. This responds with a 302 to URL B, but also appears to return a JSON body.
  2. Browser auto-GETs URL B, which appears to have no body at all.

And here’s what it looks like:

Firebug screen shot of strange behavior

I wonder why it’s mixing the responses like this… has anyone else seen this?

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*