Discourse search does not work unless you are logged in?

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.

3 Likes

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

1 Like

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

1 Like

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

Fixed per:

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

3 Likes