Storefront uses http to request to api (api uri with https) to load images
ppldheeraj opened this issue · comments
What I'm trying to achieve
…
To fetch all the data of a product (object)
Steps to reproduce the problem
- host the saleor api on some different host with https (nginx)
- use that url in .env file of saleor-front as next_public_api_uri
- start the app, open a category , it doesn't show the images of products, in inspect it can be seen that request is being made to http instead of https while this is not the case with saleor-dashboard.
What I expected to happen
…
it should make https requests to media content also as it does for other get and post requests.
Screenshots
System information
Operating system:
Browser:
your nginx should set a https header,
set_header X_FORWARDED_PROTO https
and the django shoud set this in the setting.py
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')