Added support for edit page. Fixed CORS issue with OPTIONS request.