Modify the response message if CORS is enabled