Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: iFrame from sub-domain: Refused to display |
|
Author |
|
mikek@180skills.com
Joined: 10 Dec 2014 Posts: 1 Location: USA, Indianapolis
|
Posted: Wed 10 Dec '14 23:59 Post subject: iFrame from sub-domain: Refused to display |
|
|
I am running two Apache web servers:
- moodle.myCompany.com (Moodle site)
- content.myCompany.com (web server)
I am trying to display a page, from the content site, through an iFrame, on the Moodle site, and am getting a console.log error message of "Refused to display 'http://subdomain.myCompany.com/index.php' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'."
I have been doing a lot of reading and it sounds like the X-Frame-Options is deprecated and that I should be controlling things through Content-Security-Policy and frame-ancestors.
I have no experience with apache web servers. How do I allow content from a sub-domain to load into an iFrame on my moodle site? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 18 Dec '14 12:15 Post subject: |
|
|
You need to enable mod_headers and add
Code: |
Header always append X-Frame-Options SAMEORIGIN
|
|
|
Back to top |
|
|
|
|
|
|