Site doesn’t load if cookies are blocked


(Christopher Corbettis) #1

I have Google Chrome set to block sites from setting any data, and only allow exceptions as I need.

With this set-up Discourse partially loads, but then nothing else happens, it just shows a blank page. Ideally the site loads with a message explaining why cookies are needed.


(Kane York) #2

FYI, it crashes with this error:

Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. 

(Brendan Molloy) #3

Heh, I was just about to write a bug report about this.


(Sam Saffron) #4

This is a bug and we should fix it. There is no need for cookies or localStorage for anon access, that is crazy.


(Sam Saffron) #5

This is now fixed:

https://github.com/discourse/discourse/commit/00469e976d06b350ddb26990d10794ac3de88195


(Sam Saffron) #6

This topic was automatically closed after 24 hours. New replies are no longer allowed.