-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embed website #4
Comments
Hi, Thanks for the kind words; I'm glad you find the site so useful! Are there any error messages in the developer console when this problem happens? Hard to tell what's going on without seeing it in action. It could be the Javascript URL rewriting that's messing it up, or maybe it's not reading settings properly from local storage because it's in an iframe? If you feel comfortable letting me access this particular page on your org's site, I could take a look at it myself. The real local time is based on the system time set on the computer accessing the site. There's no way to change that on VerseTime right now, but it could be implemented with a user-defined setting. |
I really appreciate you taking the time to visit us. Here's a link to the website: When you first access the page, the VERSETIME loads perfectly in the iFrame. However, if you navigate within the site and refresh the page, the VERSETIME fails to load in the iFrame. It will only function again after a complete reset of the browser settings. |
Hm, it won't even load VerseTime inside the iFrame for me. Aditionally, I'm getting cross-origin errors thrown whenever VerseTime tries to modify the URL (which happens on first load and anytime the selected location changes):
Do you have the ability to change CORS settings on your site to allow resources from outside of your domain? |
Unfortunately, my knowledge of this stuff is really bad, That is why I designed the website on WIX, lol. Uncaught DOMException: Blocked a frame with origin "https://dydrmr.github.io" from accessing a cross-origin frame. at setLocation (https://dydrmr.github.io/VerseTime/ui-controller.js:91:24 One solution is to use a proxy server that makes the request to the website on behalf of your page, so that the browser does not block the request due to the same-origin policy. You can create a simple proxy server using a server-side language such as PHP or Node.js, or you can use a publicly available proxy service. Here's an example using a publicly available proxy service "CORS Anywhere": <iframe src="https://cors-anywhere.herokuapp.com/https://dydrmr.github.io/VerseTime/"></iframe> This makes a request to the proxy service, which in turn makes the request to the website and returns the result to your page, effectively bypassing the same-origin policy.missing required request header error If you are using a proxy service, such as "CORS Anywhere", to bypass the same-origin policy, you may need to add the required header to the request. Here's an example of adding an "Authorization" header to the request: php Don't know if any of this makes sense to you. :) |
ps. I recreated this in Squarespace, (WIX competition) Get the same problem there. So it's not WIX-specific. |
I'm still not sure what could be causing this. My suggestion would be to download the repository and try embedding a local copy of VerseTime on your site. I'm handling a substance abuse intervention in my family right now and it's taking up all of my time and energy, so I don't know when I'll be able to get back to this project and investigate further. Hope you can get it to work, though. Keep us posted. |
Sure thing, 100% |
Hi Mark,
I just wanted to reach out and express my admiration for your work. It's always inspiring to see what the Star Citizen community is creating to enhance the gaming experience.
I would love to feature your site on our website using an iframe so that visitors can see who created the website and give credit where it's due.
Unfortunately, I'm facing an issue with the iframe implementation. While your website loads correctly when I first link to it, it stops loading after a page refresh and only loads again after a full browser reset. This is a major inconvenience and I was hoping you could help me resolve this issue so that I can add this fantastic tool to our organization's website.
Any assistance you could provide would be greatly appreciated. Thank you!
This is the code I used:
<title>VerseTime</title> <iframe src="https://dydrmr.github.io/VerseTime/" frameborder="0" style="width: 100%; height: 500px; border: none; background-color: transparent;"></iframe>ps. Is there a way to set or change the real local time ?
Thank so much for all your work, trouble and support.
The text was updated successfully, but these errors were encountered: