Open VictorioBerra opened 5 years ago
I think maybe they are only needed for swagger doc.
Wait no... I think you have to manually have this to respond to OPTIONS requests and that is not built into MVC. Why dont we have these?
Browsers do preflight checks but it wasn't part of the API spec (or I didn't see it when I originally did the work). PRs welcome.
Do we have help-wanted or up-for-grabs labels?
https://github.com/aspnet/Docs/issues/7268#issuecomment-446595339
Are OPTIONS action needed for CORS pre-flight requests?
See here: https://github.com/Dotnet-Boxed/Templates/blob/master/Source/Content/ApiTemplate/Controllers/CarsController.cs#L24-L64