Fix bug in CorsFilter

Change-Id: I144bdf96842dd6204e5eccbb3a7ca4f4dceb7143