Added support for OPTIONS preflight (compatibility with jquery ajax method)