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

[Bug]: Refused to display in a frame because it set 'X-Frame-Options' to 'sameorigin'. #32779

Closed
Danieliverant opened this issue Sep 24, 2024 · 1 comment

Comments

@Danieliverant
Copy link

Danieliverant commented Sep 24, 2024

Version

1.45.0

Steps to reproduce

This might be an issue on the provider side, but it's very similar to this issue: #3170

And happens only with Playwright.

How to reproduce:

  1. create a “gusto.html” file on your desktop and prepare the iframe (I will add code in the end)
  2. clone my repo - https://github.com/Danieliverant/playwright-no-trace
  3. cd playwright-no-trace (notice, you might need to do it twice)
  4. npm i

The next step has to be done by you as the URL have an expiration token:

  1. go to Gusto's “try it now” page and choose "Add Addresses" on the "type" dropdown and click "create demo" - copy the url.

  2. paste the flow url in the iframe src from step 1.

  3. serve the html file from your Desktop: npx http-server .

  4. run the tests from the repo: npx nx e2e e2e --ui

  5. run the spec named “gusto - iframe”

<!DOCTYPE html>
<html>
<head></head>
<body>
 <iframe src="url-from-try-it-now" width="100%" height="700" />
</body>
</html>

Expected behavior

Upon clicking "save" it should redirect to another page with a success message.

Actual behavior

Getting 403 on the next page request with this in the console:

Refused to display 'https://flows.gusto-demo.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Additional context

No response

Environment

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 77.42 MB / 16.00 GB
  Binaries:
    Node: 18.10.0 - ~/.nvm/versions/node/v18.10.0/bin/node
    npm: 8.19.2 - ~/.nvm/versions/node/v18.10.0/bin/npm
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: ^1.45.0 => 1.45.0
@Danieliverant
Copy link
Author

closing for now as it's might be from the providers CDN

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

1 participant