0

I have an apache server that I'd like to configure to behave differently when the request method is OPTIONS. This is a static site so doing it in a scripting language isn't possible. In my case when the request method is OPTIONS I'd like apache to simply return the standard response headers but skip the body altogether. Is such a thing possible via the .htaccess?

1 Answer 1

0

I achieved this by using mod_rewrite and creating an empty blank.html file:

<Limit OPTIONS>
  RewriteRule ^(.*)$ blank.html [QSA,L]
</Limit>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .