fix cross origin issue on chrome