Search code examples
laravel-8toastr

Laravel-toastr notification is not working after host in a live server


I am using laravel-8 and follow this to use toastr message in my project. Same code is uploaded on live server. But tostr message is not working on live server where working on local. How to fix it?

In console, it says

This page was loaded over HTTPS, but requested an insecure script 'http://cdn.bootcss.com/toastr.js/latest/js/toastr.min.js'. This request has been blocked; the content must be served over HTTPS.


Solution

  • You can use link which is https or you can allow mixed content in order to solve your issue. Add below line in your header.

    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">