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