fix: allow public access to search API for frontend LiveSearch (#107)

* fix: allow public access to search and suggest API endpoints

The search and suggest endpoints required search:read permission,
blocking unauthenticated visitors from using the LiveSearch component.
This is safe because the search query layer defaults to status=published,
so public users only see published content.

Fixes #104

* fix: add changeset for public search API access

Patch bump for emdash - allows public access to search API endpoints.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Matt Kane <mkane@cloudflare.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt Van Horn
2026-04-06 13:01:28 -07:00
committed by GitHub
parent 71744fb8b2
commit b297fdd88d
3 changed files with 7 additions and 10 deletions

View File

@@ -0,0 +1,5 @@
---
"emdash": patch
---
Allows public access to search API for frontend LiveSearch