JBIDE-18312 CordovaSim: Fixing Cross-Domain Post requests. PR for 4.2.x

what does this change ? (just trying to understand the fix)