You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the Azure web app uses ARR, the request reaching the code will be always http, regardless of the origin was from https.
var currentPageUrl = _httpContextAccessor.HttpContext.Request.GetDisplayUrl(); --> this line in GetViewSortSizeOptionsHandler.cs -> will be an http based URL . it wont be https.
Yes.. its working when deployed to azure web app directly. (Even without setting the UseForwardedHeaders to true.)
Should this issue be kept open to address the issue with docker deploy on azure web app?
Nikhil13x
changed the title
In Category layout- > Sorting, page selection, grid/list view etc. doesnt work if deployed in Azure Web Apps
In Category layout- > Sorting, page selection, grid/list view etc. doesnt work if deployed in Azure Web Apps as docker
Apr 22, 2022
Since the Azure web app uses ARR, the request reaching the code will be always http, regardless of the origin was from https.
var currentPageUrl = _httpContextAccessor.HttpContext.Request.GetDisplayUrl(); --> this line in GetViewSortSizeOptionsHandler.cs -> will be an http based URL . it wont be https.
Hence, we will get console error as below..
Mixed Content: The page at 'https://store.com/category?orderby=0×tamp=1649072845451' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://store.com/category?orderby=0×tamp=1649078904357&viewmode=grid'. This request has been blocked; the content must be served over HTTPS.
Reference: https://stackoverflow.com/questions/38501618/is-current-request-being-made-over-ssl-with-azure-deployment
The text was updated successfully, but these errors were encountered: