Project

General

Profile

Actions

Bug #100795

closed

Content element "View" button does not reload page, when preview is hosted on different (sub-)domain

Added by Webadmin no-lastname-given over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2023-05-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

An Typo3 multidomain installation is hosted on typo3.domain.com, the sites are hosted for previewing on site1.domain.com, site2.domain.com,... Cookie Domain is set to *.domain.com. So all FE-previes show admin panel, etc.

When clicking on a view button a new tab/window is opened. When clicking again, while the window is still open, the backend will throw this JS error:

Uncaught (in promise) SecurityError: Blocked a frame with origin "https://typo3.domain.com" from accessing a frame with origin "https://site1.domain.com". Protocols, domains, and ports must match.

I think it's related to: https://forge.typo3.org/issues/93706

It worked fine in LTS 10, but after updating to LTS 11 editors have always to close the tab before clicking the view button.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #93706: Content element "View" button does not reload pageClosed2021-03-11

Actions
Actions #1

Updated by Oliver Hader over 1 year ago

https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy explains what happens and also refers to the mentioned SecurityError (side-note: this is not caused by content-security-policy).

Actions #2

Updated by Oliver Hader over 1 year ago

  • Related to Bug #93706: Content element "View" button does not reload page added
Actions #3

Updated by Oliver Hader over 1 year ago

  • Status changed from New to Accepted

The change used for issue #93706 probably would help here as well, since it checks the URL for the same-origin (and skips the operation, in case of a mismatch).

Actions #4

Updated by Webadmin no-lastname-given over 1 year ago

11.5.27 does fix this problem! Thank you!

Actions #5

Updated by Annett Jähnichen over 1 year ago

  • Status changed from Accepted to Needs Feedback

Can we close this issue?

Actions #6

Updated by Webadmin no-lastname-given over 1 year ago

From our point of view the problem is solved.

Actions #7

Updated by Riccardo De Contardi over 1 year ago

  • Status changed from Needs Feedback to Closed

Thank you for your feedback. I close this issue as it looks solved.

If you think that this is the wrong decision or experience the issue again, please reopen it or open a new issue with a reference to this one.

Actions

Also available in: Atom PDF