Menu icon Foundation
Reveal - Crossdomain Problem.

Hi there,

I have some problems calling a page from a different domain.

This here is working:

<a href="test.html" data-reveal-id="MyModal" data-reveal-ajax="true">Link</a> 

<div id="MyModal" class="reveal-modal" data-reveal="data-reveal"></div>

         

And this here works not:

<a href="http://www.google.de" data-reveal-id="MyModal" data-reveal-ajax="true">Link</a> 

<div id="MyModal" class="reveal-modal" data-reveal="data-reveal"></div>
            

         

I have tried to include "allow_url_fopen = on" and "allow_url_include = on" to my php.ini, because I thought it is a crossdomain problem, but this didn't solve the problem.

Am I doing something wrong?
Did I forget something?

Best regards and thanks for any help.

michael

revealmodal

Hi there,

I have some problems calling a page from a different domain.

This here is working:

<a href="test.html" data-reveal-id="MyModal" data-reveal-ajax="true">Link</a> 

<div id="MyModal" class="reveal-modal" data-reveal="data-reveal"></div>

         

And this here works not:

<a href="http://www.google.de" data-reveal-id="MyModal" data-reveal-ajax="true">Link</a> 

<div id="MyModal" class="reveal-modal" data-reveal="data-reveal"></div>
            

         

I have tried to include "allow_url_fopen = on" and "allow_url_include = on" to my php.ini, because I thought it is a crossdomain problem, but this didn't solve the problem.

Am I doing something wrong?
Did I forget something?

Best regards and thanks for any help.

michael

Alexander Assimidis over 5 years ago

The reason for this is, that Google is sending an "X-Frame-Options: SAMEORIGIN" response header.
This option prevents the browser from displaying iFrames that are not hosted on the same domain as the parent page. You could use a reverse proxy server to handle the Different-Origin-Problem.