Why do not you use IPipelineBehavior ?!IPipelineBehavior mediatRBug And Fix·Aug 13, 2023·1 min readhttps://youtu.be/z6ZKAoUL4QE GitHub : https://github.com/bugandfix/CQRS-PipelineBehaviour MediatRC#CORSWebAPIASP.NET Share this