Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Category layout- > Sorting, page selection, grid/list view etc. doesnt work if deployed in Azure Web Apps as docker #251

Open
Nikhil13x opened this issue Apr 4, 2022 · 5 comments
Labels
onhold/wontfix This will not be worked on

Comments

@Nikhil13x
Copy link
Contributor

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&timestamp=1649072845451' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://store.com/category?orderby=0&timestamp=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

@KrzysztofPajak
Copy link
Member

Please find settings UseForwardedHeaders in AppSettings and set on True

@Nikhil13x
Copy link
Contributor Author

Thanks for the info.
Closing the issue. Will test this and reopen if required.

@Nikhil13x
Copy link
Contributor Author

It didn't work for the Azure web app deployed from the docker image..

@Nikhil13x Nikhil13x reopened this Apr 5, 2022
@KrzysztofPajak
Copy link
Member

I use Azure web apps (not docker image) here https://grandnode.azurewebsites.net/ and It works well

@Nikhil13x
Copy link
Contributor Author

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 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
@KrzysztofPajak KrzysztofPajak added the onhold/wontfix This will not be worked on label Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
onhold/wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants