addingn cross domain access to certain methods