Frequently Asked Questions

  1. Home
  2. Docs
  3. Frequently Asked Questions
  4. Errors
  5. Why do I get a network error when submitting an order?

Why do I get a network error when submitting an order?

If you are able to connect to your store, but receive a network error when submitting an order, 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 (https://web.foosales.com). 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