Embedding Posts To Other Sites.


How did we create an embed so MyMiix could be used through the Iframe tag?

While researching the youtube embed feature we decided to look into our own custom embed feature. We have now got our feature to work. we decided to add a subdomain so clickjacking doesn’t affect our main site because it’s out of the main site. https://embed.mymiix.com. This site will mainly be for embedding posts and maybe live streams so anyone can post it on their site. We only had one line of code to make this feature possible.

How to get this feature to work for your site?

Go to .htaccess & write this line of code Header set X-Frame-Options “ALLOW-FROM URL”. When you add this line of code in the .htaccess file this will allow you to show your site in the <iframe />

example:

<iframe src="https://embed.mymiix.com/post/638593605c1ba" style="border:0px; width:100%;" borderframe="0" width="100%" height="540px"></iframe>

Leave a Reply