document.cookie not working (only on my hosted website)

When I visit my website hosted on “” and I set a cookie in the Google Chrome console, I can’t retrieve it using “document.cookie” - that just returns an empty string. The same method works on every other website I tried, but on my own one.

How do I fix that?

That sounds like a Javascript issue, Javascript is executed in your browser. We don’t do anything different that could break your Javascript code.

The only way to fix the issue is to fix your code.