COMETD-505 - Synchronous CORS requests do not work in jQuery + Firefox.

Worked around jQuery bug.
Merged branch '2.8.x' into 'master'.