@breautek/storm
    Preparing search index...

    Class CORSMiddleware

    CORSMiddleware is used to enable CORS on APIs. It will automatically add the necessary headers necessary to communicate with CORS enabled clients.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • OptionalallowedOrigin: string

        The allowed origin. By default it will use the request origin.

      • OptionalallowedHeaders: string[]

        Array of allowed headers.

      • OptionalallowedMethods: string[]

        Array of allowed HTTP methods.

      Returns CORSMiddleware

    Methods