CloudKit JS issue with Advanced Data Protection

I am using CloudKit JS to allow users to access iCloud data through a web page. It was working fine until I enabled Advanced Data Protection. After enabling ADP (and the "Access iCloud Data on the Web" option), I received this error when requesting to .../production/private/records/lookup:

reason: "private db access disabled for this account"
​serverErrorCode: "ACCESS_DENIED"

Do I need to update anything? Is there a way to fix this issue? Thank you.

You can re-enable web access to iCloud, but you'll have to sign into iCloud alongside using an existing iCloud-connected device to generate temporary access keys for your web session. Unclear to me so far if this extends to all/any CloudKit JS clients.

CloudKit JS issue with Advanced Data Protection
 
 
Q