livewire-charts
livewire-charts copied to clipboard
Mixed Content: The page at 'https://mailx.to/' was loaded over HTTPS, but requested an insecure script 'http://mailx.to/vendor/livewire-charts/app.js'. This request has been blocked; the content must be served over HTTPS.
Mixed Content: The page at 'https://mailx.to/' was loaded over HTTPS, but requested an insecure script 'http://mailx.to/vendor/livewire-charts/app.js'. This request has been blocked; the content must be served over HTTPS.
I have gotten this error on chrome console
@suadikhasen Use https for the APP_URL
in your .env file then run php artisan view:clear
to clear view cache.
@phuclh I know I didn't ask the question, but this was 100% the correct answer. Thank you for taking the time to answer it prior. SAVED ME TONS OF TIME.
I know this is an old question now, however, the best way I found to make this work is to add this to the boot method of the AppServiceProvider
(App::environment('production'))
? URL::forceScheme('https')
: URL::forceScheme('http');