-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
js exception with iframe #204
Comments
Thanks. I edited |
On the other hand I don't see how posted code would fix it? It's the problem of Webmin librariy has the following: if (!$gconfig{'no_frame_options'}) {
print "X-Frame-Options: SAMEORIGIN\n";
} Which means if there is no option
What is the way that you run Webmin? Do you use Apache or inbuilt minserv? |
Problem is about accessing |
I see. From my perspective of view, it's not going to work, unless you disable (if allowed by your browser) http://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome It's irrelevant to the theme, I think, unless you convince me otherwise. You might also be interested with taking a look at |
When iframe [b] use
Setting |
Oh, that! Alright, it sounds correct then. Sorry! What if I make sure that while being in |
Yes, only this two file. if (window.name === "page") {
// page iframe
}
else {
// main window
// don't use window.parent
} |
This is actually pretty close to what I do to define frames, I just use if (window.location == window.parent.location) {
}
else {
} Alright, I will test |
Thank you, and the theme too! |
You are very welcome! |
When allowing webmin inside iframe (
no_frame_options=1
in config), i get some js exception :Click on menu items is broken
Prepending this line to
loader.min.js
works.The text was updated successfully, but these errors were encountered: