Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Issue: EnableCors should throw if config has been initialized [937]

$
0
0
EnableCors should throw an exception if the HttpConfiguration has already been locked down due to the first request. Otherwise it will insert a MessageHandler that will not be properly chained with the other handlers, silently breaking the pipeline.

We require the config to be immutable after the first request but are currently not doing much to enforce it. The Cors scenario is one where a public API can corrupt the pipeline when called at the wrong time. We should start throwing InvalidOperationException whenever we can detect these illegal mutations of the config.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>