add OPTIONS request to fix the CROS request
reconstruct the service code