Server side crossdomain ajax ready with auth.

Added auth support in crossdomain ajax access.