detect x-domain and handle accordingly.  corrected mime-types.