Improved surface loading
Added corss-origin check
Added check cross-origin URL in HttpRequest by CrossOriginUrl function instead manual check