Hi all, not sure if this is a bug or intended behavior. I’m writing a little Javascript client-side app that will retrieve a Dynalist document and display a flat sorted list of items matching a search. Unfortunately when the app tries to pull the document from the API it gets rejected with a CORS error:
Hmm that seems like something we missed. I’m guessing that the majority of the time, our API is used from some kind of automated/semi-automated script like python, or IFTTT, which isn’t ran from a browser session.
Before we enable CORS for everyone, we should consider the security implications for it. For example, if our API endpoints allowed CORS credentials, and used the user’s session with cookies, then it would be vulnerable to malicious sites that makes API requests to Dynalist from the user’s browser.
With that said, since the API is completely token based, I think we should be safe to enable CORS to use with browser-based apps.