fix the POST to OPTIONS issue with Chrome