# Application CORS and authentication are enforced by PHP.
# Do not emit Access-Control-Allow-Origin: * for financial/identity APIs.
Options -Indexes
<FilesMatch "^(?:\.env|\.htaccess|error_log|composer\.(?:json|lock))$">
  Require all denied
</FilesMatch>

# Forward Authorization header to PHP-FPM on Apache hosts that strip it.
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP:Authorization} .+
  RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
