AspNetCore.Docs
AspNetCore.Docs copied to clipboard
fix(health-checks): cors origin doesn't accept empty args
This PR doesn't resolve an issue, but it addresses a small mistake in the docs.
As shown in the image below, RequireCors requires us to pass a builder, or a policy name.
The method gives a compile error when no arguments are provided, but the docs mention that it should be possible.

Link to the source code with the allowed signatures.
@FirstAfterGod2501 please review
@timdeschryver thanks for your contribution. Be sure to check out your name as a contributor about the 3rd of next month on the What's new page in the Community contributors section at the bottom.
Cool, thanks @Rick-Anderson !