WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
90660
Add a way to detect x-frame-options when loading a url
https://bugs.webkit.org/show_bug.cgi?id=90660
Summary
Add a way to detect x-frame-options when loading a url
Jon
Reported
2012-07-05 23:17:20 PDT
It would be great if there was a way to detect when frame content can't be loaded because of the x-frame-options header. That way, if we were showing framed content we could alert the user why it won't load, or just forward them to the url in the frame. Maybe there could be an onError handler when loading the frame? There's an outstanding stackoverflow question about this:
http://stackoverflow.com/questions/7950184/is-there-a-client-side-way-to-detect-x-frame-options
Attachments
Add attachment
proposed patch, testcase, etc.
lb1.3
Comment 1
2016-06-15 10:41:52 PDT
How is this "unconfirmed"? Many people are asking for the event to detect this and it seems odd that it's not a standardized error or an error code you can detect in JS.
Anne van Kesteren
Comment 2
2023-03-01 08:55:54 PST
This is not something we want to expose directly to JavaScript as it could be used to attack cross-origin resources. (It would also go against the HTML Standard.)
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug