Handle OPTIONS requests and Access-Control-Allow-Origin