Eliminate cross-domain detection and just use try catch