I'm writing a third party native JavaScript component which uses localStorage on the client.
When looking at the Resources tab on Chrome DevTools I see that my localStorage entries are stored under the client domain. For example: let's say my file comes from cdn.3rd.com and is used as resource on stackoverflow.com - then in this case my localStorage entries are saved under the http://stackoverflow.com store.
However, looking at different websites, I see that normally third party localStorage entries are saved to stores under the third party's domain. For example in bbc.com I see a store for iperceptions.com, and in cnn.com there's a store for outbrain.com.
So how do I open a localStorage store for my own domain on the client's page?