Files
m8chat-app2/web/.htaccess
help4bis 0672f6b28b fix: backport SPA routing block added directly on production (2026-05-01) to web/.htaccess
Production app2.m8chat.au/.htaccess gained Flutter HTML5 routing rules
edited live on brisbane01; local repo never received them. Full-tree
md5 comparison (45 files) shows this was the only drift.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 04:53:53 +10:00

16 lines
505 B
ApacheConf

# Required for SharedArrayBuffer — needed by LiveKit E2EE frame encryption.
# Without COOP+COEP, the LiveKit E2EE web worker cannot be created.
<IfModule mod_headers.c>
Header set Cross-Origin-Opener-Policy "same-origin"
Header set Cross-Origin-Embedder-Policy "require-corp"
</IfModule>
# Flutter HTML5 routing — all unknown paths serve index.html
Options -Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.html [L,QSA]