WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
20106
Ajax posts from iframe don't work as expected
https://bugs.webkit.org/show_bug.cgi?id=20106
Summary
Ajax posts from iframe don't work as expected
Joseph Conder
Reported
2008-07-18 23:10:33 PDT
AJAX POST requests from inside an IFrame do not seem to work. AJAX GET requests seem to work fine. FYI, the IFrame src content resides on a different domain than the base document. The strange thing is that if I load the contents of the IFrame in a top level window and then go back to the page with the IFrame, then NOW it will handle the AJAX POST.
Attachments
Add attachment
proposed patch, testcase, etc.
Joseph Conder
Comment 1
2008-07-19 08:07:39 PDT
It appears to be related to a security issue. The application is SSO enabled and the third-party server writes a cookie (it's in the same domain but a different host). This could explain the failed posts, but why should I be able to request a GET to the same URL with success?
Gavin Barraclough
Comment 2
2013-02-12 12:16:24 PST
Doesn't look like a JSC bug.
Alexey Proskuryakov
Comment 3
2013-02-12 18:40:22 PST
I think that you are seeing Safari's default cookie blocking policy in action. 3rd party subframes are by default not allowed to set cookies - this is to limit ad network tracking of users across sites. Please feel free to re-open if this issue is different than what I think it is.
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