Compliance-Kern: HTTPS-Erzwingung, Datenschutzlink im Buchungsformular, signierte Links/Feeds von Adress-Weiterleitung ausnehmen
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m39s

- ForceHttps-Middleware (abschaltbar per FEWO_FORCE_HTTPS)
- Datenschutzerklaerung im Buchungsformular verlinkt
- ResolveTheme: angebot/bewertung/angebote/kalender/automation/health bleiben auf der aufgerufenen Adresse
- Berichte MVP-TECHNICAL-GATE / MVP-COMPLIANCE-ACCEPTANCE, Regeln fuer parallele Agenten (ZUSAMMENARBEIT 7)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-10-30 22:28:20 +01:00
1 parent 4c9e6992f4
commit 545008baab
10 files changed
+575 -1

No files matched your search

+18
View File
@@ -45,6 +45,13 @@ public function handle(Request $request, Closure $next): Response
$context->set($tenant);
}
if ($this->staysOnRequestedAddress($request)) {
URL::forceRootUrl($request->getSchemeAndHttpHost());
URL::forceScheme($request->getScheme());
return $next($request);
}
if ($redirect = $this->toMainAddress($request, $theme->site)) {
return $redirect;
}
@@ -54,6 +61,17 @@ public function handle(Request $request, Closure $next): Response
return $next($request);
}
/**
* Signed links (offers, reviews, newsletter) are bound to the host they were issued for, and portals and
* automations call feeds and endpoints under the address they were given. These paths are answered on the
* address they came in on – a redirect to the main address would invalidate old signatures and feed URLs
* after a change of the main address. Links on such a page keep the requested host (session, CSRF).
*/
private function staysOnRequestedAddress(Request $request): bool
{
return $request->is('angebot/*', 'bewertung/*', 'angebote/*', 'kalender/*', 'automation/*', 'health/*');
}
/**
* A website answers on one main address. Visitors coming in through a further address (e.g. www.…) are
* sent there permanently – otherwise the page would load its scripts, fonts and videos from the main