Allow Cors to be instantiated without HttpKernelInterface