Register the cors filter factory