Problem solved by configuring the webapp to send relative (instead of absolute, which is the default) redirect URL back to the web client.
Mailing lists
Newsgroups
RFC archive