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.