Skip to content
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

SAMEORIGIN display error #5

Closed
ghost opened this issue Dec 13, 2014 · 16 comments
Closed

SAMEORIGIN display error #5

ghost opened this issue Dec 13, 2014 · 16 comments

Comments

@ghost
Copy link

ghost commented Dec 13, 2014

Refused to display 'https://www.google.com/?gws_rd=ssl' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

@ghost
Copy link
Author

ghost commented Dec 18, 2014

+1

@mark-hahn
Copy link
Owner

I'm sorry it took me so long to respond. I don't know how I missed it.

I'm very surprised about that error because I went to great trouble to get rid of permission errors.

I just tried that URL and it worked for me. What OS and OS version are you on, what Atom version, and what web-browser version?

@ghost
Copy link
Author

ghost commented Dec 18, 2014

Atom: v0.161.0
Atom Web Browser: 0.2.3
OS: Windows 7

Console output:
Refused to display 'https://www.google.com.ua/?gws_rd=ssl' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. about:blank:1
Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME about:blank
Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'DENY'.

@mark-hahn
Copy link
Owner

My versions pretty much match yours. I'm not sure how I can debug this.
Let me give it some thought and get back to you. I should be free to do
this tonight.

On Thu, Dec 18, 2014 at 9:56 AM, Ihor Oleksandrov notifications@github.com
wrote:

Atom: v0.161.0
Atom Web Browser: 0.2.3
OS: Windows 7


Reply to this email directly or view it on GitHub
#5 (comment).

@ghost
Copy link
Author

ghost commented Dec 19, 2014

It's so sad:
https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options

I guess this bug can't be fixed:(

@mark-hahn
Copy link
Owner

The fact that it works on my setup which is almost the same means it can be fixed. But I'd like to fix it by getting rid of the iFrame. I have a version that uses the new webview instead of the iFrame. However, there is a bug in webview that crashes it when it is hidden. So switching tabs in the editor breaks it. I just bugged the atom guys to fix this yesterday.

@mark-hahn
Copy link
Owner

The webview bug is in chrome itself. Google has fixed it but the fix won't be released until jan and then atom-shell has to pick it up and then atom. So maybe mid to end of jan we'll see it.

I am really stuck here. I'm using name: 'browser-page-disable-x-frame-options' in my view which disables all x-frame-options errors. And it works for me and I assume others.

Have you tried running atom in safe mode: atom --safe? It might be a conflict with another package, although I don't see how.

@DinisCruz
Copy link

I just had the same issue trying to open GitHub

image

@mark-hahn
Copy link
Owner

There is a fix for this. @gstack forked web-browser and published
https://atom.io/packages/atom-browser-webview. It has a "fix" for the
chrome webview bug. He is going to push the change to web-browser but for
now you can use his package.

On related news google has issued a webview bug fix. If it is the one that
is clobbering web-browser then we should have a simpler and maybe more
robust fix.

On Fri, Jan 9, 2015 at 6:03 AM, Dinis Cruz notifications@github.com wrote:

I just had the same issue trying to open GitHub

[image: image]
https://cloud.githubusercontent.com/assets/656739/5680662/4ca6804c-9808-11e4-9e46-a7d0a654c1ac.png


Reply to this email directly or view it on GitHub
#5 (comment).

@mark-hahn
Copy link
Owner

@gstack mentioned that atom-browser-webview
https://atom.io/packages/atom-browser-webview isn't quite ready for
production.

On Fri, Jan 9, 2015 at 1:56 PM, Mark Hahn mark@hahnca.com wrote:

There is a fix for this. @gstack forked web-browser and published
https://atom.io/packages/atom-browser-webview. It has a "fix" for the
chrome webview bug. He is going to push the change to web-browser but for
now you can use his package.

On related news google has issued a webview bug fix. If it is the one
that is clobbering web-browser then we should have a simpler and maybe more
robust fix.

On Fri, Jan 9, 2015 at 6:03 AM, Dinis Cruz notifications@github.com
wrote:

I just had the same issue trying to open GitHub

[image: image]
https://cloud.githubusercontent.com/assets/656739/5680662/4ca6804c-9808-11e4-9e46-a7d0a654c1ac.png


Reply to this email directly or view it on GitHub
#5 (comment)
.

@DinisCruz
Copy link

For reference that trick solves it, here is GitHub running inside Atom

image

@mark-hahn
Copy link
Owner

Closing in favor of #6

Oops. This is best thread for this.

@mark-hahn mark-hahn reopened this Jan 29, 2015
@mark-hahn
Copy link
Owner

Good news. The webview element is now fixed in Atom. I should have a new fully-working version of web-browser with new features in a week or so.

@mark-hahn
Copy link
Owner

fixed in 1.0.0

@rocker252
Copy link

I have been trying to display one URL in IFrames. In IE it is displaying "This content cannot be displayed in a frame" error. Could you please tell me how to fix this issue??

@mark-hahn
Copy link
Owner

I'm sorry but I don't know anything that can help you. I don't remember
anything related to iFrames. I ended up using webview elements, not
iframes.

On Tue, Apr 12, 2016 at 1:40 PM, vamsipriya notifications@github.com
wrote:

I have been trying to display one URL in IFrames. In IE it is displaying
"This content cannot be displayed in a frame" error. Could you please tell
me how to fix this issue??


You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
#5 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants