livewire-charts icon indicating copy to clipboard operation
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.

Open suadikhasen opened this issue 2 years ago • 3 comments

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 avatar Dec 29 '21 07:12 suadikhasen

@suadikhasen Use https for the APP_URL in your .env file then run php artisan view:clear to clear view cache.

phuclh avatar Jan 22 '22 21:01 phuclh

@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.

Jarrid avatar Apr 06 '22 02:04 Jarrid

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');

rileyshannon avatar Feb 10 '23 17:02 rileyshannon