I know very little about server configuration so excuse me if this is a silly question. I have a site that hosts content for an iframe (mydomain.com) and I want to allow a couple of other sites to embed an iframe on their site of my content. Initially, it was blocked so I read up on how to allow it using my nginx configuration on ubuntu digital ocean server but I could not find anything on allowing more than one domain. When I try using the below directives it will throw console errors in firefox for not being allowed. How do I allow more than one domain to use our content in an iframe?
This is what I tried:
add_header X-Frame-Options "ALLOW-FROM https://www.onedomain.com/";
add_header X-Frame-Options "ALLOW-FROM https://www.anotherdomain.com/";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
The error code in the console shows:
Load denied by X-Frame-Options: https://www.onedomain.com/ does not permit framing by https://www.anotherdomain.com/