http instead of https production issue

Currently have my .env set to "production" instead of "local" for my APP_ENV. However, in my admin panel, none of the js is working for the table due to this:
Mixed Content: The page at 'https://mydomain.com/admin/guests' was loaded over HTTPS, but requested an insecure script 'http://mydomain.com/js/filament/tables/components/table.js?v=3.2.23.0'. This request has been blocked; the content must be served over HTTPS.
Mixed Content: The page at 'https://mydomain.com/admin/guests' was loaded over HTTPS, but requested an insecure script 'http://mydomain.com/js/filament/tables/components/table.js?v=3.2.23.0'. This request has been blocked; the content must be served over HTTPS.
Really confused whats going on
3 Replies
Tieme
Tieme10mo ago
And what is your APP_URL ?
Jamie Cee
Jamie CeeOP10mo ago
https I think I found it. Similiar to a different issue, but same fix. Just had to add "*" to the $proxies in the TrustProxies middleware Working now
Jo
Jo9mo ago
With the latest Laravel 11 update, the way to do this has changed slightly, see https://laravel.com/docs/11.x/requests#configuring-trusted-proxies
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Want results from more Discord servers?
Add your server