Hi for some reason the full screen button on a YouTube video doesn’t work when on a web page hosted on my Digital Ocean droplet. When clicking full screen it says “Full screen is unavailable”. Here’s a screenshot -
Another developer added the exact same code to his server on Cloudflare and the full screen button works.
I have no idea why it works on Cloudflare and not Digital Ocean.
Please can someone help fix this?
How is a server setting preventing full screen from working?
Here’s the HTML -
<!DOCTYPE html> <html> <head> <meta name='robots' content='noindex, nofollow'> </head> <body> <iframe src="https://www.youtube.com/embed/mQYRWvIj0Yw?mute=1&autoplay=1" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="522px" scrolling="auto" allowfullscreen></iframe> </body> </html>
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.