Test domain before setting iFrame src attribute