Please Support CORS from the Data API
It would be amazing if the Data API supported CORS (via some sort of authentication mechanism in addition to the API key).
As it stands right now, we'd have to write a proxy API to consume the Data API, which would take about the same amount of coding as creating webhooks on Atlas to modify the collections.
Hi everyone - this feature is under review. We are currently optimizing for serverside usage of the API, but are considering allowing access from a browser as well. If you have any additional context on the use-case or general feedback regarding this feature, please feel free to email me at email@example.com
Add CORS support is very important. I am working on PyScript (Python in the browser) and I wrote an article on the issues that I found with example code.
I would appreciate if Mongo could strive to support HTTP access to clusters in the same way that Arango does: https://www.arangodb.com/docs/stable/http/general.html
They have a mature solution that accounts for access control and security concerns with client side implementations as well.