Jump to content

Strange domain mismatch between test forum and main forum


riko

Recommended Posts

 

I desperately need help as I’m completely lost with this.

Test Forum (Offline):

I have 2 iFrames.
- iFrame(A) and iFrame(B).
- iFrame(B) has a link to load a HTML page into iFrame(A).

All links are HTTPS (not http) and all links use full paths (https://www.mysite.com/etc)

On my testing forum I create a page with Pages that has iFrame(A) + iFrame(B).


<iframe src="https://www.mysite.com/test_forum/uploads/test_files/1.html" name="name1" id="name1" scrolling="no"></iframe>

<iframe src="https://www.mysite.com/test_forum/uploads/test_files/2.html" name="name2" id="name2" scrolling="no"></iframe>

Link in iFrame(B): https://www.mysite.com/test_forum/uploads/test_files/3.html

Opening the page in a browser both iFrames load.
When I click on the link in iFrame(B), 3.html loads into iFrame(A).

Ergo it all works.

=================================

Main Forum (Online)

I copy everything to my main (Online) forum and change the paths where applicable:

<iframe src="https://www.mysite.com/forum/uploads/files/1.html" name="name1" id="name1" scrolling="no"></iframe>

<iframe src="https://www.mysite.com/forum/uploads/files/2.html" name="name2" id="name2" scrolling="no"></iframe>

Link in iFrame(B): https://www.mysite.com/forum/uploads/files/3.html


Opening the page in a browser both iFrames load.
When I click on the link in iFrame(B), nothing loads in iFrame(A).

Error console puts this out:
Blocked a frame with origin "https://www.mysite.com" from accessing a frame with origin "https://mysite.com". Protocols, domains, and ports must match.

So there is a domain mismatch here, a www is missing.


Now here is the part that drives me slightly insane, if I go back to my TEST FORUM, change all the paths to LOAD the iFrames and HTML pages from my MAIN FORUM, it suddenly works again.


Anyone any idea what is going on here? Why does it work on my (up-to-date) test forum but not on my main (up-to-date) IPB forum?

Link to comment
Share on other sites

Anyone any idea's? 

I can access the iFrames and their content through a browser perfectly.
It works as written above in my test forum linking the Pages content to my main forum but when accessed from my main forum through Pages it bugs out.

Why doesn't it work?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...