fixed insert title photo and moved cors configuration to BaseHandler