diff --git a/packages/mern-sample-app/app-node-express/src/middleware/index.ts b/packages/mern-sample-app/app-node-express/src/middleware/index.ts index 6384f5f4..97dfc152 100644 --- a/packages/mern-sample-app/app-node-express/src/middleware/index.ts +++ b/packages/mern-sample-app/app-node-express/src/middleware/index.ts @@ -64,14 +64,14 @@ function __debug_middleware__( /** * Express app global middleware collection (executed in order): * - * -   1  {@link withCors withCors} + * -   1  {@link withCredentials withCredentials} * -   2  {@link withStaticAssets withStaticAssets} * -   3  {@link withJsonParser withJsonParser} * -   4  {@link withRouteSession withRouteSession} * -   5  {@link withCompression withCompression} * -   6  {@link withRouteContext withRouteContext} * -   7  {@link withCookieParser withCookieParser} - * -   8  {@link withCredentials withCredentials} + * -   8  {@link withCors withCors} * -   9  {@link withCsp withCsp} * - 10  {@link withHpp withHpp} * - 11  {@link withMorgan withMorgan} @@ -79,6 +79,7 @@ function __debug_middleware__( * - 13  {@link withAuthorization withAuthorization} */ export const middleware = [ + __debug_middleware__(withCredentials.name, withCredentials()), __debug_middleware__(withCors.name, withCors()), __debug_middleware__(withStaticAssets.name, withStaticAssets()), __debug_middleware__(withJsonParser.name, withJsonParser()), @@ -86,7 +87,6 @@ export const middleware = [ __debug_middleware__(withCompression.name, withCompression()), __debug_middleware__(withRouteContext.name, withRouteContext()), __debug_middleware__(withCookieParser.name, withCookieParser()), - __debug_middleware__(withCredentials.name, withCredentials()), __debug_middleware__(withCsp.name, withCsp()), __debug_middleware__(withHpp.name, withHpp()), __debug_middleware__(withMorgan.name, withMorgan()),