Comments on: Wrong Document Context – Chrome Disallowing a Redirect? https://www.sempdx.org/blog/wrong-document-context-chrome-disallowing-a-redirect/ Mon, 03 Jul 2023 19:41:44 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: Geoff H https://www.sempdx.org/blog/wrong-document-context-chrome-disallowing-a-redirect/#comment-40329 Mon, 03 Jul 2023 19:41:44 +0000 http://sempdx-v2.local/?p=27908#comment-40329 Also running into this issue when trying to Redirect to a calendar hosted on Wild Apricot. I’m putting together slides for a digital sign and thought it would be nice to include upcoming events. I think we have another sign that solves this problem. I’ll try to figure out how they fixed it and post here if I find a solution.

]]>
By: Kristen Taylor https://www.sempdx.org/blog/wrong-document-context-chrome-disallowing-a-redirect/#comment-36305 Fri, 14 Aug 2020 21:16:50 +0000 http://sempdx-v2.local/?p=27908#comment-36305 Great news! Found this series of posts yesterday while trying to solve our “Wrong document context” error and worked with WildApricot to fix this issue on our site. Hopefully it helps you guys, too.

We learned that the problem was with the link I’d used for an event… while it worked alone in a browser, in an iframe, it would generate that annoying error OR a redirect to the WA-hosted page.

Our original code was [iframe src=”https://stairways.wildapricot.org/event-3934068/” width=”100%” height=”1000″ name=”register” scrolling=”yes”]

But the tech support guy pointed out that the link was missing the word WIDGET and had me use this url instead: https://stairways.wildapricot.org/widget/event-3934068/

Worked immediately! Went back and checked the other iframe links on the site and found that others had the widget already, so this was just a simple mistake in grabbing the wrong embed link.

ALSO NOTE:

For those having trouble using iframes, they are not secure, so some https/http links cannot be used with them if the site has a different security level.

The workaround – at least on WordPress – is an iframe plugin that lets you exchange the usual wrapper for a braces [ ]. It’s a simple swap that made a HUGE difference for us (Divi was actually erasing our old iframe code every couple of days before this fix).

]]>
By: Ben J https://www.sempdx.org/blog/wrong-document-context-chrome-disallowing-a-redirect/#comment-36202 Thu, 04 Jun 2020 11:22:52 +0000 http://sempdx-v2.local/?p=27908#comment-36202 Keep these brackets though – I should have used [ ] for the – oh well:

onload=’tryToEnableWACookies(“https://YOURSUBDOMAIN.wildapricot.org”)

]]>
By: Ben J https://www.sempdx.org/blog/wrong-document-context-chrome-disallowing-a-redirect/#comment-36201 Thu, 04 Jun 2020 11:20:26 +0000 http://sempdx-v2.local/?p=27908#comment-36201 Here is the code – just switch out the brackets and add in your info:

(iframe width=’100%’ height=’800px’ frameborder=’no’ src=’https://YOURSUBDOMAIN.wildapricot.org/widget/XXX’ onload=’tryToEnableWACookies(“https://YOURSUBDOMAIN.wildapricot.org”);’ )(/iframe)(script type=”text/javascript” language=”javascript” src=”https://YOURSUBDOMAIN.wildapricot.org/Common/EnableCookies.js”)(/script)

]]>
By: Ben J https://www.sempdx.org/blog/wrong-document-context-chrome-disallowing-a-redirect/#comment-36200 Thu, 04 Jun 2020 11:16:44 +0000 http://sempdx-v2.local/?p=27908#comment-36200 Hi Scott!

I came across this too – seems to be a cookie issue. You can solve this using the following script:

XXX refers to the end of the link for the page you are looking to direct to e.g. events or sys/profile etc

Thanks!

]]>
By: Tom https://www.sempdx.org/blog/wrong-document-context-chrome-disallowing-a-redirect/#comment-28612 Wed, 21 Aug 2019 18:41:41 +0000 http://sempdx-v2.local/?p=27908#comment-28612 In reply to Scott Hendison.

Hi there …
I have the same problem when i use SNIPLY to link to a site or eventsite of WILD APRICO.
There is allready a solution for this issue?

]]>
By: Scott Hendison https://www.sempdx.org/blog/wrong-document-context-chrome-disallowing-a-redirect/#comment-27071 Tue, 23 Jul 2019 14:05:38 +0000 http://sempdx-v2.local/?p=27908#comment-27071 In reply to Adam.

I’m sorry, but we were unable to resolve the issue, and instead just stopped using iframes from Wild Apricot. Very strange…

]]>
By: Adam https://www.sempdx.org/blog/wrong-document-context-chrome-disallowing-a-redirect/#comment-27060 Tue, 23 Jul 2019 01:15:09 +0000 http://sempdx-v2.local/?p=27908#comment-27060 Hello Scott!

I am running into the same issue when I try to incorporate an iframe into my website designed using wix, I wanted to include a snippet of my wild apricot events list into the website but it is giving me the “wrong document context!” error, do you mind sharing how you were able to resolve this issue? Thank you!

Adam

]]>