fix: CORS regex rejects plyr.fm subdomains like docs.plyr.fm (#1034)
the production regex only allowed `plyr.fm` and `www.plyr.fm` — any
other subdomain (e.g. `docs.plyr.fm`) got blocked. widen the pattern
to `([a-z0-9-]+\.)?plyr\.fm` so all first-party subdomains work.
same fix applied to the staging regex.
adds regression tests for CORS origin matching across all environments.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
authored by
zzstoatzz.io