I store my newsletters .html files in S3 and I have created a function that pulls the newsletters and puts them into iFrames.
My problem is I can’t set an auto height for the iFrames because I can’t read the content.
I have a plugin that works if the files are on the same domain. Can I set some headers to allow access from my sub-domain?
S3 has a feature called “Virtual Hosting”.
Try mapping your S3 bucket to your domain.
See here for an example.