Jump to content

Iframe Refused to Connect

Recommended Posts

I'm having an issue when embedding an iframe virtual tour to our squarespace site. We keep getting the message "refused to connect".

After some reading, we assumed that our https url was somehow converting to http when embedded, so we added a rewriterule to our .htaccess file so http cannot be substituted, but we are still getting the error. The odd thing is we embedded a .jpg image from the same server and it displays fine.. Anyone have any ideas?

 

 

Squarespace embedded page:

http://www.tanner-designed.com/shay-residence

A2 embedded URL

https://www.tanner-storage.com/shaytour10/index.htm

Link to comment
  • 2 years later...
  • Replies 5
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

  • 8 months later...

Having the same issue. I'm building a portfolio site to show off the Squarespace sites I've created. Sites on 7.0 show up in an the iFrame without issue. 7.1 sites (for example, https://www.tonihaberteam.com/) don't show up. The iframe on the portfolio site says "www.tonihaberteam.com refused to connect." 

I tried changing the DNS and Name servers to match a working 7.0 site but it didn't work. Any ideas?

Screen Shot 2022-12-06 at 1.12.15 AM.png

Link to comment
2 hours ago, JackNathanRichards said:

7.1 sites (for example, https://www.tonihaberteam.com/) don't show up. The iframe on the portfolio site says "www.tonihaberteam.com refused to connect." 

SS has set a policy to not allow their sites to be loaded via iframes unless the src is from the same domain.

1601143472_ScreenShot2022-12-06at12_14_10AM.thumb.png.953a26bfdff47c4a7f51a491fa73718b.png

Quote

Sites on 7.0 show up in an the iFrame without issue.

This is because SS has not set the X-frame-Options to sameorigin for v7.0 sites.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
On 12/6/2022 at 3:20 AM, creedon said:

SS has set a policy to not allow their sites to be loaded via iframes unless the src is from the same domain.

Thanks for the quick reply. Since I have access to the 7.1 site I'm trying to iFrame, do you know if there is a code I can inject to change the X-Frame-Options to allow from my portfolio site? Everything I'm seeing online seems like a no since it's a server setting, but maybe there's a workaround I'm missing.

Link to comment
2 minutes ago, JackNathanRichards said:

Everything I'm seeing online seems like a no since it's a server setting

SS does not allow access to their backend.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.