Added checks for responsiveIframe xdomain settings.

When using xdomain setting, checks to make sure orgin exists ( coming
from a proper webserver ) and ensures that xdomain matches domain.