Commit f28d236
committed
fix: force $_SERVER['HTTPS'] when APP_URL uses HTTPS
Completes the fix for #290. Setting WP_HOME from config('app.url') was
not sufficient — WordPress also checks $_SERVER['HTTPS'] for canonical
URL redirects. Behind a reverse proxy, this variable is 'off' unless
explicitly set, causing redirect loops.
Instead of trusting proxy headers (removed in b98bfef for security),
we derive the HTTPS state from the declarative APP_URL configuration.1 parent a1b4a79 commit f28d236
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
0 commit comments