-
Notifications
You must be signed in to change notification settings - Fork 162
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
"X-Frame-Options: ALLOW-FROM ..." prevents iframe from loading #1017
Comments
Hi @nik-garmash, |
Yes, it is a bug. |
A new version would be great. |
…hash' (close #1426) (#1514) * i1426 * i1426 * Requested changes: rename ensureHostEndedTrailingSlash() to ensureOriginTrailingSlash(); rewrite urlUtils.getProxyUrl(ensureOriginTrailingSlash(url)) * Fix server test (Should procees "x-frame-options" header (GH-1017)), export TRAILING_SLASH_RE needed in this test, fix client location test * Fix navigateTo(): leading slashes case * Fix ensureOriginTrailingSlash(), code cleanup * Add ensureOriginTrailingSlash test * Fix location header, fix ensureOriginTrailingSlash test, add location header test, add location href test (wrapper) * Add tests * Requested changes * Requested changes * Requested changes
…hash' (close DevExpress#1426) (DevExpress#1514) * i1426 * i1426 * Requested changes: rename ensureHostEndedTrailingSlash() to ensureOriginTrailingSlash(); rewrite urlUtils.getProxyUrl(ensureOriginTrailingSlash(url)) * Fix server test (Should procees "x-frame-options" header (DevExpressGH-1017)), export TRAILING_SLASH_RE needed in this test, fix client location test * Fix navigateTo(): leading slashes case * Fix ensureOriginTrailingSlash(), code cleanup * Add ensureOriginTrailingSlash test * Fix location header, fix ensureOriginTrailingSlash test, add location header test, add location href test (wrapper) * Add tests * Requested changes * Requested changes * Requested changes
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
From what I see ALLOW-FROM can be used in two different cases:
And the second case seems to be broken as hammerhead sends origin of the application under test but ALLOW-FROM header is tested against test-server's hostname in the browser.
Example:
But when the application is under test, 4th step is broken because current domain (which serves testing-server) does not pass same-origin policy.
The solution might be to send test-server's domain as Origin when requesting iframes.
Does it sound like an issue to you, guys?
More info:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
https://tools.ietf.org/html/rfc7034
The text was updated successfully, but these errors were encountered: