Hi,
I am developing an extension. Our goal is everytime safari is opened, the extension will try to read all the cookies. So we do NOT want to read session cookie, but the cookies in cache
I googled, it seems that safari does not have an api for this, but we can make it work by the following:
1. when the webpage is loaded, send document.cookie to background
2. in the background, use javascript localStorage or some other database to store the cookie
Is my understanding correct? After all, it is still complex to implement, it sounds like we have to develop a cookie manager and maintain it.
Is there any other workaround or better way?
Thank you very much