Web 2.0 Header Question

I’m trying to serve images from a different web server/domain I need to add the “Access-Control-Allow-Origin” header to the session response. I’ve tried all the places I can think of the add this header but not having any luck getting. Anyone head any luck doing this before.