Fixed the put support to handle the options first request method then the put. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS for discussion on OPTIONS