• Adding cors setting to express app

    Parameters

    • app: Express
    • options: string | RegExp | (string | RegExp)[] | CorsOptions

      , to change later, string | (string | RegExp)[] | RegExp will be deprecated, and only CorsOptions will be supported

    Returns Express

    app with cors setting blocks-eeb6

    Deprecated

    You can use CORS options CreateNodeblocksAppOptions.corsOptions in createNodeblocksApp now.

Generated using TypeDoc