Does Adobe XD use cookies?

If not, is there a technology similar to cookies being used?

1 Like

Network requests do use cookies, but the plugin has no direct access to them. Usually one would set headers or the body, assuming the endpoint supports it. If you need to persist information, plugins do have access to local storage, but this is not secure storage, so be careful what you store. :slight_smile:

2 Likes

If you’re looking for storage for your plugins (and not cookies in network requests), you might want to take a look at xd-storage-helper, which is an MIT-licensed library I’ve written for exactly this use-case.

It allows storing key-value-pair data in a way that’s similar to localStorage (get(), set() etc.), and saves the data in a JSON file in your plugin data directory.

3 Likes

If the user signs into an account in her favorite browser to a site like Instagram or similar, would the plugin be able to recognize that and post to her account? Or does she need to login again through a HTML form in UXP panel or dialog?