update CORS.md

This commit is contained in:
cottongin
2026-01-17 11:24:23 -05:00
parent b06e25030d
commit 7d16bdc436

15
CORS.md
View File

@@ -72,3 +72,18 @@ curl -I -X OPTIONS -H "Origin: https://echo-reality.com" \
``` ```
The response should include the `Access-Control-Allow-Origin: https://echo-reality.com` header. The response should include the `Access-Control-Allow-Origin: https://echo-reality.com` header.
### Quick test `.htaccess` for DreamHost
```apache
# TEMPORARY - Allow all origins for testing
<IfModule mod_headers.c>
<FilesMatch "\.(mp3|mp4|wav|ogg|m4a)$">
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET, HEAD, OPTIONS"
Header set Access-Control-Expose-Headers "ETag, Last-Modified, Content-Length"
</FilesMatch>
</IfModule>
```
This limits the wildcard CORS to just media files, which is a reasonable middle ground—your audio files are publicly accessible but you're not opening up everything on the domain.