Skip to content

Commit

Permalink
Merge pull request #32 from brunotot/hotfix-frontend-cors
Browse files Browse the repository at this point in the history
chore: frontend cors fix
  • Loading branch information
brunotot authored Oct 7, 2024
2 parents e24b918 + f60f532 commit 3857e2c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ function __debug_middleware__(
/**
* Express app global middleware collection (executed in order):
*
* -   1  {@link withStaticAssets withStaticAssets}
* -   2  {@link withJsonParser withJsonParser}
* -   3  {@link withRouteSession withRouteSession}
* -   4  {@link withCompression withCompression}
* -   5  {@link withRouteContext withRouteContext}
* -   6  {@link withCookieParser withCookieParser}
* -   7  {@link withCors withCors}
* -   1  {@link withCors withCors}
* -   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}
* -   9  {@link withCsp withCsp}
* - 10  {@link withHpp withHpp}
Expand All @@ -79,13 +79,13 @@ function __debug_middleware__(
* - 13  {@link withAuthorization withAuthorization}
*/
export const middleware = [
__debug_middleware__(withCors.name, withCors()),
__debug_middleware__(withStaticAssets.name, withStaticAssets()),
__debug_middleware__(withJsonParser.name, withJsonParser()),
__debug_middleware__(withRouteSession.name, withRouteSession()),
__debug_middleware__(withCompression.name, withCompression()),
__debug_middleware__(withRouteContext.name, withRouteContext()),
__debug_middleware__(withCookieParser.name, withCookieParser()),
__debug_middleware__(withCors.name, withCors()),
__debug_middleware__(withCredentials.name, withCredentials()),
__debug_middleware__(withCsp.name, withCsp()),
__debug_middleware__(withHpp.name, withHpp()),
Expand Down
7 changes: 4 additions & 3 deletions packages/mern-sample-app/app-vite-react/.env.development
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Railway development server
#VITE_API_CLIENT_URL=https://monorepo-mern-railway-starter-backend.up.railway.app
VITE_API_CLIENT_URL=https://monorepo-mern-railway-starter-backend.up.railway.app
VITE_API_KEYCLOAK_URL=https://keycloak-production-86f5.up.railway.app

# Local
VITE_API_CLIENT_URL=http://localhost:8081
VITE_API_KEYCLOAK_URL=http://localhost:8080
#VITE_API_CLIENT_URL=http://localhost:8081
#VITE_API_KEYCLOAK_URL=http://localhost:8080

0 comments on commit 3857e2c

Please sign in to comment.