CORSMiddleware

public final class CORSMiddleware : Middleware

Middleware that adds support for CORS settings in request responses. For configuration of this middleware please use the CORSMiddleware.Configuration object.

Note

Make sure this middleware is inserted before all your error/abort middlewares, so that even the failed request responses contain proper CORS information.