asp.net mvc bundles do not render for https.
here is my code:
bundles.Add(new StyleBundle("~/Content/css/css").Include("~/Content/css/custom.css"));
View
@Styles.Render("~/Content/css/css")
And the error code I get is:
Mixed Content: The page at
'https://domain/'was loaded over HTTPS, but requested an insecure stylesheet'http://domain:443/Content/css/custom.css'. This request has been blocked; the content must be served over HTTPS.
@Styles.Render()it uses the same HTTP scheme as the main page so the error is not making sense in relation to your bundle. Are you sure you do not have another copy ofcustom.cssbeing loaded as a<link>? - user3559349