How to setup proxy server with Unity WebGL custom application

Topic summary

Goal: Validate an architecture to let a Unity WebGL app (hosted on an external domain) create customized products via Shopify’s Admin API while avoiding CORS and security issues.

Proposed flow:

  • Client (Unity WebGL) sends “safe” product details to a self-hosted proxy server.
  • Proxy server calls Shopify Admin API to create the product using the received data.
  • Shopify returns the result, which is relayed back to the customer.

Key terms:

  • Admin API: Shopify’s backend API for store management (e.g., product creation).
  • CORS: Browser security policy restricting cross-origin requests from frontends.
  • Proxy server: A backend under the developer’s control that mediates requests, hiding credentials from the client.

Main questions:

  • Is a backend proxy the correct solution for this use case?
  • How to ensure the proxy can call Shopify’s API without CORS issues?

Status: Inquiry only; no answers yet. The thread remains open with unresolved implementation details.

Summarized with AI on January 11. AI used: gpt-5.

Hi,

I’ve made a Unity WebGL application that will be used by clients.
For context, my application is hosted on an external domain.

I want to give my customers the possibility of creating their own customized products, so I want to make requests to the Admin API.
For security reasons and to avoid CORS problems, I understand that I need to set up a proxy server hosted by myself, and do the following:
-(Client side) Unity WebGL app sends “safe” requests (just the product information the client is creating) to the proxy server I’m hosting
-Proxy server sends the product creation request with all the information retrieved from the app, to the Shopify API.
-The Shopify API executes the request and sends the information back to the customer.

Is this the right solution?
If so, how can I ensure that my proxy server can send requests to the Shopify API without having CORS problems?