# Disable LiteSpeed cache for webhook endpoint
<IfModule LiteSpeed>
  CacheDisable public /
</IfModule>

# Disable mod_security for webhook (often blocks Stripe POSTs)
<IfModule mod_security.c>
  SecFilterEngine Off
  SecFilterScanPOST Off
</IfModule>

<IfModule mod_security2.c>
  SecRuleEngine Off
</IfModule>

# Ensure POST requests pass through unmodified
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteRule ^webhook\.php$ - [L]
