Answer the question
In order to leave comments, you need to log in
Nginx: how to allow displaying some pages in frames?
Hello.
The question is: is it possible to configure nginx so that it allows displaying only site pages by mask in frames? For example:
example.com/report/xxxxxxxxxxxxxxxxxxx1
example.com/report/xxxxxxxxxxxxxxxxxxx2
example.com/blog/yyyyy
example.com/about
Answer the question
In order to leave comments, you need to log in
In the "forehead" on js (insert into the template code on each page):
if (window.parent != window.top && window.top.location.href.indexOf('https://example.com/report/')===0) {
//Мы в iframe-е и адрес основной страницы начинается с "https://example.com/report/"
//Грузим то, что нужно.
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question