public final class CORSMiddleware : Middleware
Middleware that adds support for CORS settings in request responses.
For configuration of this middleware please use the
NoteMake sure this middleware is inserted before all your error/abort middlewares, so that even the failed request responses contain proper CORS information.
Option for the allow origin header in responses for CORS requests.
- none: Disallows any origin.
- originBased: Uses value of the origin header in the request.
- all: Uses wildcard to allow any origin.
- custom: Uses custom string provided as an associated value.
public enum AllowOriginSetting