Loading rating not showing on https
I am using bootstrap-rating in my Grails app. It works correctly on local machine, but does not show up on https after deploying to client server. We are using a relative path including gsp as shown below:
href = "/css/bootstrap-rating.css", src = "/js/bootstrap-rating.min.js"
The error displayed in the browser console is similar to "Mixed Content: The page at 'https://test.test.com/account/searchAccount/23' was loaded over HTTPS, but requested an insecure script 'http://test.test.com/static/js/bootstrap-rating.min.js"
How do I fix this problem?
In GSP, I did the following,
<link href="${resource(dir: 'css', file: 'bootstrap-rating.css')}" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${resource(dir: 'js', file: 'bootstrap-rating.min.js')}"></script>
<input type="hidden" class="rating rating-gly" value="${lifeTime}" data-readonly />
+3
source to share