use current domain instead of localhost