View Issue Details

IDProjectCategoryView StatusLast Update
0007770OXID eShop (all versions)2. ----- eShop backend (admin) -----public2025-02-19 10:57
Reporterrene.gust Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version7.0.2 
Summary0007770: Cant use admin with cloudflare domain because of endless redirects
DescriptionAs an oxid developer I want to be able to use the cloudflare domains like rene.oxiddev.de and the admin interface during development.

When i enter the url https://rene.oxiddev.de/admin the browser gets redirected endlessly. During debug I found this function:

OxidEsales\EshopCommunity\Core\Config::checkSsl

(oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/Config.php:781)

I think the last statement

```
        if (
            isset($serverVars['HTTP_X_FORWARDED_SERVER']) &&
            (strpos($serverVars['HTTP_X_FORWARDED_SERVER'], 'ssl') !== false ||
             strpos($serverVars['HTTP_X_FORWARDED_SERVER'], 'secure-online-shopping.de') !== false)
        ) {
            $this->setIsSsl(true);
        }
```

could be extended with

```
|| isset($serverVars['HTTP_X_FORWARDED_PROTO']) && $serverVars['HTTP_X_FORWARDED_PROTO'] == 'https'
```

When i use cloudflare this header is always set to https when using https. So my propsal would be to include this check to be able to use cloud flare domains.
Steps To Reproduce1.
- setup cloudflare domain
- go to [your-sub-domain-name].oxiddev.de/admin
- browser will be redirected endlessly

2.
- change the statement in oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/Config.php:781
- add `|| isset($serverVars['HTTP_X_FORWARDED_PROTO']) && $serverVars['HTTP_X_FORWARDED_PROTO'] == 'https'`
- go to [your-sub-domain-name].oxiddev.de/admin
- you can now login to admin
Tagsadmin ssl
ThemeAll
BrowserAll
PHP Version8.0
Database VersionOther

Activities

There are no notes attached to this issue.