fabiano
fabiano
CDCloudflare Developers
Created by fabiano on 10/25/2024 in #general-help
How to configure Nginx to allow iframe embedding on a specific domain?
Hi everyone, I have a static HTML website hosted on an Ubuntu 24.04 server with Nginx as the web server. I need to configure the site so that it can be embedded in an iframe on a specific domain. I’m looking for guidance on how to set this up in Nginx. Specifically, I want to allow only one domain to embed my site in an iframe while blocking all others. Could someone point me in the right direction or share the necessary configuration steps for Nginx to achieve this? Thank you for your help!
1 replies