You should throw an exception if zfr_cors is not defined. See the ModuleOptions factory, I think I was doing it.