X-Frame-Options header refused to be embedded frame iframe

Foreword: Apache server requires a page to reject embedded Frames. But our company requires a domain name after its own domain name.
I didn't make multiple domain names before. Record the configuration process here:
1. Edit the apache configuration file----> httpd.conf as follows;
vim httpd.conf
Search for LoadModule rewrite_module modules/mod_rewrite.so #Remove the preceding #
2. Allow your own website and some other websites to quote your webpage content in frames, as follows;
SetEnvIf Referer "http://www.xxxx.com/" iframes_Ner=1
Header set X-Frame-Options SAMEORIGIN env=!iframes_Ner


Guess you like

Origin blog.51cto.com/2475296/2552351