Discourse search does not work unless you are logged in?


(Arlair) #1

I’m not sure if I am missing anything here, but on meta, roots.io or my own discourse, I cannot seem to get any search results unless I am logged in.

I tried this on desktop and mobile (using different internet providers). If I am not logged in, the searching icon appears, but shows nothing. If I log in, it does the same thing, but shows a list of results.


(Khoa Nguyen) #2

The server response with 403 error and this message : ['BAD CSRF']
I think this is a valid bug :smiley:


(Kane York) #4

Hmm, it seems like the BAD CSRF retry code isn’t working?


(Jeff Atwood) #5

Yeah this is a new bug @sam and kind of urgent, if it prevents non-logged in users from searching… confirmed.


(Sam Saffron) #6

Fixed per:

https://github.com/discourse/discourse/commit/6f63f4fe1751a3963e496eaed7ef4a57d256035a


(Sam Saffron) #7