menu

Saleor Commerce

The world’s fastest growing open-source e-commerce platform with billions of dollars transacted. Powered by Python, GraphQL, ReactJS and PWA.

Channels
# All channels
view-forward
# General
view-forward
# Announcements
view-forward
# Design
view-forward
# Development
view-forward
# Saleor 3.0
view-forward
# Saleor Features
view-forward
Team

Storefront resource not load completely

July 5, 2020 at 6:39pm

Storefront resource not load completely

July 5, 2020 at 6:39pm
Hello,
I got this error when trying to access storefront. "Network error: Not allowed to request resource" My Saleor app is behind HAProxy and traffic is fordward to internal server with private ip.
I have added load balancer ip, server public ip into "ALLOWED_HOSTS" and added this option "--disable-host-check" into docker-compose.yml file, but still didn't work.
Please help me to correct the issue. Thank you.

July 6, 2020 at 9:05am
Hey! Is it local development? Or are you trying to deploy Saleor somewhere? Are you using the saleor-platform repo?
  • reply
  • like
yes, i installed saleor on local server, using Docker.
  • reply
  • like

July 8, 2020 at 11:57am
Do you have any idea to fix this issue? Thank you.
  • reply
  • like
You're using saleor-platform on a server. Saleor platform has been designed only for local development. We do not use docker-compose for deployment.
  • reply
  • like
so, what should i do to correct this issue?
  • reply
  • like

July 9, 2020 at 8:22am
What would you like to achieve? Would you like to deploy Saleor somewhere or use it locally?
If you would like to use Saleor on production, then do not use saleor-platform repo and do not use docker-compose. You'll have to install manually each Saleor's component: core API, dashboard, storefront (because they are separate apps).
  • reply
  • like

July 11, 2020 at 3:11pm
thanks for your advice. i am looking for instruction to do manual install Saleor 2.10 on Ubuntu 20.04, but the document seems outdated, https://docs.saleor.io/docs/2.8.0/getting-started/installation-linux/
Edited
  • reply
  • like

July 13, 2020 at 2:25pm
i have setup Saleor's components, not using saleor-platform anymore, but still getting same error "Network error: Not allowed to request resource". This could be incorrect or missing config somewhere, could you advice me how to fix it? Thanks a lot.
  • reply
  • like
Ok I see, let me check with the team. I'll get back to you tomorrow.
  • reply
  • like
i found the error showing in console, "was loaded over HTTPS, but requested an insecure resource 'http://10.0.0.77:8000/graphql/'. This request has been blocked; the content must be served over HTTPS." could be related to this issue. I am using frontend ssl terminator (Haproxy), and backend is saleor's storefront which is listening on port 3000. All saleor's components are using http://
  • reply
  • like

July 15, 2020 at 1:59pm
any idea how to correct this issue? Thank you
  • reply
  • like

July 17, 2020 at 1:10pm
the content must be served over HTTPS. You can find more info here: https://stackoverflow.com/a/52133425/3993664
  • reply
  • like