Added cross domain and fixed a bug caused by remove extend library.