Add AnyHeader and AnyMethod to src/Middleware/CORS/src/Infrastructure/CorsConstants.cs #54772
Labels
api-approved
API was approved in API review, it can be implemented
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Background and Motivation
According to pull request #54247, CorsConstants only contain AnyOrigin value
This is while it also needs AnyHeaders and AnyMethods because, unlike AnyOrigin, the value "*" is used directly in other places.
Proposed API
My changes are like this:
Usage Examples
Instead of using this form:
The text was updated successfully, but these errors were encountered: