View Issue Details

IDProjectCategoryView StatusLast Update
0007770OXID eShop (all versions)2. ----- eShop backend (admin) -----public2025-07-07 12:05
Reporterrene.gust Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
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

michael_keiluweit

2025-03-06 16:23

administrator   ~0017852

As discussed today, the issue is acknowledged.

rene.gust

2025-07-07 12:02

reporter   ~0018024

maybe this chatgpt helps to understand what I mean:

https://chatgpt.com/share/686b9b29-f778-8008-a2a6-7af54ee3ee7f

rene.gust

2025-07-07 12:05

reporter   ~0018025

I would have to research the HTTP headers again, but I hope this ChatGPT helps you? My guess is that the code does not take into account all the HTTP headers that are important in this context. May be only 5% of the developers, I can't say