Issue Bug Closed

#101219Image cropping for twitter image results to a reload of the page settings

Philipp Kuhlmay 07/03/23, 10:04 updated 06/08/24, 10:30

Description

When trying to crop the image for the twitter cards it sometimes results into a reload of the page.

Steps to reproduce:
Open pagesettings
Remove the existing image for the twitter card.
Add a new image for the twitter card -> don’t save
Hit the button “Open editor” for the twitter image.

Result:
The page reloads and the image was not saved.

Expectation:
The cropping should be possible without the image reload.

Notes:
This doesn’t happen always, only sometimes. In my case I already had an image for facebook selected. When you try to edit the image directly it seems to work. Only if I delete the previous image and then add a new one without saving, I get this error.

PHP 8.1 (didn’t test it with 8.2)
TYPO3 12.4.2
ddev, composer, completely fresh installation with only a starting page.

Error in the console:
VM159:1 Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘self’ ‘nonce-y84-tmyrXpWYdbGA6LjkxT-CvYKnoVYx6lL4K311-KDy6tRmI86YHQ’ ‘report-sample’”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-FDyPg8CqqIpPAfGVKx1YeKduyLs0ghNYWII21wL+7HM=’), or a nonce (‘nonce-…’) is required to enable inline execution.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.