When attempting to use the "Advanced > Set Cookies" feature, I'm finding that this isn't working correctly, even though the cookie values are stored successfully in the extension's storage.js file.
I'm hoping I am entering the cookie values correctly.
See steps to reproduce.
Website Pattern: searx.me
expirationDate: 2429913600
name: oscar-style
url: https://searx.me/
value: pointhi
The rest of the fields were unaltered.
I use similar cookie values in a custom webextension I wrote for Chrome and it works correctly with the following:
browser.cookies.set({
url: urlDetails.url,
name: cookieName,
value: cookieValue,
expirationDate: cookieExpiration
});
So my cookie values should be correct.
Let me know if you need any more info from me.
Hey, thanks for reporting! You did everything right - but I didn't test expirationDate and it turns out that cookies.set requires a number and it didn't like strings.
Just published version 0.54 - should now work without any changes from your side. Let me know if not.
What's interesting is, that it seems if you directly enter https://searx.me into the addressbar the cookie isn't set fast enough or something and hence a refresh is needed. Did you find a fix for that in your custom webextension? Surfing to http://searx.me works, because then a redirect happens and setting the cookie is fast enough.
Just published version 0.55 and Set Cookies will now modify the request headers too and add the cookie there. This way websites directly see the cookie and act accordingly (like showing the correct style in case of searx.me). Let me know if something doesn't work as expected.
Latest version is working as expected.
Really love this feature! I was thinking about this idea myself, but thought it might be complicated to get this working with Temporary Containers.
Thanks stoically!