Add support for options request to make CORS work