PUT requests and CORS origin proper management