frontend: fix discovery cookie endpoint