OData protocol required a set of headers and expose a set of headers. If a user want to specify them on the attribute he/she has to list them all for every EnableCorsAttribute see issue 923. So write an ODataEnableCorsAttribute deriving from EnableCorsAttibute can help reuse codes. Unfortunately you can't do so of the EnableCorsAttribute is sealed.
Comments: Given that 923 is probably not a good idea, we should keep this class sealed for now unless there is a good reason not to.
Comments: Given that 923 is probably not a good idea, we should keep this class sealed for now unless there is a good reason not to.