1. 程式人生 > >在apache禁止 http OPTIONS方法. apache disable http OPTIONS method

在apache禁止 http OPTIONS方法. apache disable http OPTIONS method

<Location />
    <Limit OPTIONS>
        Deny from all
    </Limit>
</Location>

或者用rewrite

RewriteCond %{REQUEST_METHOD} ^(OPTIONS)
RewriteRule .* - [F]