Issue Resolved
Issue #12 closed: Mixed Content Error: Trusted Proxies not configured after deployment
Description
After provisioning an application on Coolify using laravel-coolify, forms that redirect (like registration) cause a Mixed Content error.
Error
Mixed Content: The page at 'https://progress.stuartmason.co.uk/register' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://progress.stuartmason.co.uk/dashboard'. This request has been blocked; the content must be served over HTTPS.
Environment
- Laravel application deployed via Coolify
- Site served over HTTPS via Coolify's reverse proxy
- Error occurs on form submissions that redirect (e.g., registration redirecting to dashboard)
Context
The issue appears to be related to Laravel not recognizing the HTTPS request when behind Coolify's reverse proxy, causing it to generate HTTP URLs for redirects.