symfony/symfony — pull request #9820 by sroze (2013-12-19 10:16:24+00:00)
Title: [SecurityComponent] Added a "target_forward" option

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | None
| License | MIT
| Doc PR | [The reference to the documentation PR if any]

This PR add an `target_forward` option that makes the `DefaultAuthenticationSuccessHandler` to forward instead of redirect if login is successful.

A use case is using `XmlHttpRequest`s, `302 Found` redirects might not works with CORS.