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.

2 Likes