BACKLOG-5331
- Remove flushBuffer from setupCORSHeaders method that was committing the response sometimes too soon, preventing us from setting context profile ID cookie.