Fixed embed issues in cross domain situations.