I'm using ASP.NET Core. I have configured a CDN for CSS and JS files.
This my code in the TagHelper in my HTML:
<script src="https://mycdn.azureedge.net/dist/web.bundle.js"
asp-append-version="true"
asp-fallback-src="~/dist/web.bundle.js"
asp-fallback-test="window.jQuery">
</script>
My problem is that the redirect is done hover http and I need https.
This is the error in my browser:
Mixed Content: The page at 'https://www.myweb.com' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.myweb.com/dist/web.bundle.js'. This request has been blocked; the content must be served over HTTPS.
Another thing is that my CSS and JS is not appending the version param.
<script src="https://mycdn.azureedge.net/dist/web.bundle.js"></script>
Thanks!!