working cross server and cross browser