Issue Bug Closed

#63416ExtDirectApi.php doesn't switch to https

Patrick Gaumond 11/28/14, 22:45 updated 11/16/15, 11:30

Description

Using TYPO3 version 6.2.7

My server is behind a proxy that handle SSL/HTTPS. Communication from Proxy to the actual site isn’t under HTTPS.

[BE][lockSSL] = 0
(1 throw error about BE not available under SSL, 2 and 3 gives ERR_TOO_MANY_REDIRECTS)

If I call my BE like this: https://www.mysite.com/typo3/ the BE is ok except for the Pagetree. Using “inspect element” in Chrome, I got this error:

[blocked] The page at 'https://www.mysite.com/typo3/backend.php' was loaded over HTTPS, but ran insecure content from 'http://www.mysite.com/typo3/ajax.php?ajaxID=ExtDirect::route&namespace=TYPO3.Components.PageTree': this content should also be loaded over HTTPS.

Manually modifying /typo3/sysext/core/Classes/ExtDirect/ExtDirectApi.php around line 138 by hardcoding my site beginning with https make it works :

  • Doesn’t work, use http: $url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv(‘TYPO3_SITE_URL’) . TYPO3_mainDir . ‘ajax.php?ajaxID=ExtDirect::route&namespace=’);

Is this a bug or there’s a way to make sure getIndpEnv(‘TYPO3_SITE_URL’) will keep the site under https ?

Reviews 0

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