Issue Bug Closed

#103935InvalidArgumentException "Unsupported scheme android-app" in CSP reporter

Manfred Egger 05/27/24, 11:37 updated 10/15/24, 09:30

Description

It appears that when opening a page via the google search bar on Android devices an InvalidArgumentException is thrown because the search bar sends an referer with scheme “android-app”.

I hunted this down to core/Classes/Middleware/AbstractContentSecurityPolicyReporter.php on line 97 where a TYPO3\CMS\Core\Http\Uri is constructed with the referrer android-app://com.google.android.googlequicksearchbox/

I only found one similar issue in a TYPO3 extension: https://github.com/urbantrout/site-language-redirection/issues/6
Maybe this helps with solving the issue?

Reviews 2