updated cors filter to support PUT requests and changed order PUT
request