Mender Server CORS origin setup

I recently tried connecting to Mender using the API from a different domain, and I am getting CORS preflight errors. The Preflight OPTIONS request is returning a 401, so I’m guessing that I haven’t configured the accessControlAllowOriginList header in the Traefik config.

This is on-premise Mender, using mender-helm.

I saw this old post, which described an ALLOWED_HOSTS setting that I can no longer find: Issue with cross server API access

I then looked for accessControlAlowOriginList in mender-helm, but did not find anything. My guess is I need to add this setting here: mender-helm/api-gateway-configmap.yaml at master · mendersoftware/mender-helm · GitHub

Is this correct? Is there a way to set allow-origin that’s already supported by Mender’s configurations?