Fixed the check for "same origin request".