Skip to content

Update CORS middleware to use dispatcher #4210

@JamesNK

Description

@JamesNK
  • Update CORS middleware to use endpoint metadata
  • Figure out whether MVC CORS logic should be disabled when the middleware has run. This would be a performance optimization. If they have different behavior then MVC CORS should continue to run. Double check with @rynowak about this
  • If MVC CORS logic should be disabled then do it. Follow the AuthorizeFilter pattern in this PR - Update AuthorizeFilter to no-op when AuthorizationMiddleware has run #6346

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing one

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions