I am using a third party script in my web page which has logic for storing data in localstorage and indexeddb. The storage is having the origin as the domain of the web page hosted in my domain. I want to have domain of the third party script where the storage logic is. Is that possible?
Edit: I should have been more clear: Why is indexeddb using origin of html page than of origin of javascript file when they are hosted in 2 different domains?