• Creates a CORS middleware that sets the appropriate headers for Cross-Origin Resource Sharing (CORS).

    Parameters

    • origin: string

      The allowed origin for CORS requests.

    • methods: string

      The allowed HTTP methods for CORS requests.

    Returns HoosatRequestHandler

    The CORS middleware.

Generated using TypeDoc