Frequently Asked Questions

  1. Home
  2. Docs
  3. Frequently Asked Questions
  4. Errors
  5. Why do I get a network error when trying to connect to my store?

Why do I get a network error when trying to connect to my store?

If you are receiving a network error when connecting to your store, there might be a server configuration preventing the request from being sent.

FooSales connects to your store from a domain that is different from your domain ( Requests between different domains are known as cross-origin resource sharing requests (CORS). Your server will need to specifically allow these types of requests. Normally servers are already setup to accept these requests and return the response with the appropriate headers, but some servers might be configured to block them. Your browser will prevent the request from completing if the response does not have the required headers.

Your server needs to return an Access-Control-Allow-Origin header that allows FooSales to post data to your store. You should be able to see whether or not this header is enabled and what its value is if you have access to your server configuration. You can also contact your server admin or web host to ask about allowing cross-domain REST API requests for FooSales. Some browsers also have settings that you can tweak to allow these requests for FooSales. Alternatively, you can use a proxy server that ensures that all the correct headers are set and returned between your website and FooSales.

Tags , , , , , , , , , , , ,
Was this article helpful to you? Yes No 2