I am encountering an issue with developing an iframe where I am unable to make it go fullscreen from within the iframe. Fullscreen API works when both the iframe and hosting website are on the same domain, as well as triggering fullscreen from outside the iframe.
Unfortunately, triggering fullscreen from inside the iframe is not possible when the hosting website is on a different domain due to cross-domain policy restrictions.
Curiously, YouTube seems to have found a way around this limitation. How do they achieve this? The solution has proven elusive in my search online.
Any insights would be greatly appreciated!