I’ve been using Tutor for both development and production installation for almost a year now and I’ve been really impressed on how easy it is to customize and deploy OpenEdx using Tutor. Whenever I have a question on how to accomplish something I always find an answer on the online documentation and here on the community forum until I ran into the issue I’m facing now. I’m hoping somebody or Regis can give me some guidance.
We would like other websites (domains) to be able to embed content from our Tutor installation in an HTML iframe. When testing this on a simple HTML page, it throws the following error -
Refused to display ‘https://tutorexample.com/’ in a frame because ‘X-Frame-Options’ is set to ‘sameorigin’.
It’s obvious that the solution would be to somehow change NGINX’s X-Frame-Option to ALLOW FROM some address. How do you go about doing this in Tutor?
Thanks for posting the solution @wyworx! Are you familiar with tutor plugins? To make your changes last, you should create a plugin that implements the “nginx-lms” patch.