REST CORS fix.
Added options request.
Merge commit '6de3abb796bc2d8e1d80c8d80ec7e25d26acdd77'