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

Accessing Patterns via the Command Pallete While Writing a Post in Calypso Causes "Refused to display (..) 'X-Frame-Options' to 'sameorigin'" error #92634

Closed
mrfoxtalbot opened this issue Jul 12, 2024 · 4 comments
Assignees
Labels
[Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Post/Page Editor The editor for editing posts and pages. Groundskeeping Issues handled through Dotcom Groundskeeping rotations [Pri] High Address as soon as possible after BLOCKER issues [Product] WordPress.com All features accessible on and related to WordPress.com. [Status] Priority Review Triggered Quality squad has been notified of this issue in #dotcom-triage-alerts Triaged To be used when issues have been triaged. [Type] Bug When a feature is broken and / or not performing as intended

Comments

@mrfoxtalbot
Copy link

mrfoxtalbot commented Jul 12, 2024

Quick summary

If you are editing a post via Calypso using Firefox, attempting to visit Patterns via the Command Palette causes an error.

This is ONLY happening with Firefox. In the case of Chrome, if you try to visit https://wordpress.com/post/example.com , you get redirected to https://example.com/wp-admin/post-new.php?post_type=post&calypsoify=1 and will work correctly

Watch video:

Kapture.2024-07-12.at.13.00.21.mp4

This error seems to be directly related to

Steps to reproduce

  1. Visit https://wordpress.com/posts using Firefox
  2. Write a new post
  3. Look up "Patterns" in the Command Palette and click on it

What you expected to happen

It should work

What actually happened

It crashses and shows this error:

The loading of “https://mrfoxfreesite.wordpress.com/wp-admin/site-editor.php?postType=wp_block” in a frame is denied by “X-Frame-Options“ directive set to “sameorigin“.site-editor.php

Impact

All

Available workarounds?

Yes, difficult to implement

Platform (Simple and/or Atomic)

Simple, Atomic

Logs or notes

No response

@mrfoxtalbot mrfoxtalbot added [Type] Bug When a feature is broken and / or not performing as intended [Feature] Post/Page Editor The editor for editing posts and pages. Needs triage Ticket needs to be triaged [Product] WordPress.com All features accessible on and related to WordPress.com. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. labels Jul 12, 2024
@mrfoxtalbot mrfoxtalbot added the [Pri] High Address as soon as possible after BLOCKER issues label Jul 12, 2024
@mrfoxtalbot mrfoxtalbot changed the title Accessing Patterns via the Command Pallet while writing a Post in Calypso Causes "Refused to display (..) 'X-Frame-Options' to 'sameorigin'" error Accessing Patterns via the Command Pallete while writing a Post in Calypso Causes "Refused to display (..) 'X-Frame-Options' to 'sameorigin'" error Jul 12, 2024
@mrfoxtalbot mrfoxtalbot added Triaged To be used when issues have been triaged. and removed Needs triage Ticket needs to be triaged labels Jul 12, 2024
@mrfoxtalbot
Copy link
Author

Escalated p1720782495509149/1720705584.703329-slack-C02FMH4G8

@mrfoxtalbot mrfoxtalbot moved this from Needs Triage to Triaged in Automattic Prioritization: The One Board ™ Jul 12, 2024
@mrfoxtalbot mrfoxtalbot changed the title Accessing Patterns via the Command Pallete while writing a Post in Calypso Causes "Refused to display (..) 'X-Frame-Options' to 'sameorigin'" error Accessing Patterns via the Command Pallete While Writing a Post in Calypso Causes "Refused to display (..) 'X-Frame-Options' to 'sameorigin'" error Jul 12, 2024
@mrfoxtalbot
Copy link
Author

Workaround: use the editor via /wp-admin/edit.php instead of wordpress.com/posts

@xavier-lc xavier-lc self-assigned this Aug 19, 2024
@xavier-lc xavier-lc added the Groundskeeping Issues handled through Dotcom Groundskeeping rotations label Aug 21, 2024
@github-actions github-actions bot added the [Status] Priority Review Triggered Quality squad has been notified of this issue in #dotcom-triage-alerts label Aug 21, 2024
@xavier-lc
Copy link
Contributor

Fixed with #93787

@mrfoxtalbot
Copy link
Author

@xavier-lc, we have a very similar bug affecting the "new page" option: #93979

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Post/Page Editor The editor for editing posts and pages. Groundskeeping Issues handled through Dotcom Groundskeeping rotations [Pri] High Address as soon as possible after BLOCKER issues [Product] WordPress.com All features accessible on and related to WordPress.com. [Status] Priority Review Triggered Quality squad has been notified of this issue in #dotcom-triage-alerts Triaged To be used when issues have been triaged. [Type] Bug When a feature is broken and / or not performing as intended
Development

No branches or pull requests

2 participants