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.
↧