Is MusicKit JS supported or permitted in headless Chromium on embedded Linux?

Hi,
We are building a network audio device running embedded Linux (headless — no display, no user-facing browser UI). I'd like to clarify whether MusicKit JS can be used in this environment, both technically and from a licensing standpoint.

Our setup
Embedded Linux on ARM, no screen
Headless Chromium running as a background service
MusicKit JS loaded in a page to authenticate the user and play Apple Music

Questions

  1. Is MusicKit JS supported in a headless browser context, or is it intended only for interactive, user-facing browser sessions?
  2. MusicKit JS requires a Developer Token with an origin claim, and a valid web origin. If the page is served locally on the device (e.g. http://127.0.0.1) with no public domain, what origin should be used? Is a local origin acceptable?
  3. Is embedding MusicKit JS inside device firmware — where the browser is never visible to the user and playback is not initiated through a normal browsing session — within the MusicKit terms of use?
  4. I want to confirm whether running MusicKit JS in headless Chromium would be considered an acceptable implementation。

For context: we are already MFi licensees with AirPlay 2 integrated. We simply want to be certain any additional work stays within the authorized scope.
Any guidance — including a pointer to the relevant section of the MusicKit terms — would be much appreciated.
Thanks in advance

I would be cautious about using MusicKit JS this way. Apple's public MusicKit pages describe playback on the web in terms of users streaming from a website, but I couldn't find a statement that headless Chromium on embedded Linux is a supported environment. The docs also don't answer whether a loopback origin is acceptable for the developer token's origin claim.

Since this is going into a product, I'd get confirmation from Apple Developer Support about the headless use case and the MusicKit terms before building around it. Include the exact origin, how the user authorizes the device, and how playback is presented or controlled. Also check whether the target Chromium build supports the playback and DRM requirements; MFi and AirPlay 2 approval alone may not cover this separate MusicKit JS use.