add fix for same origin policy