Skip to content

Commit 6b5016b

Browse files
authored
fix: LDP-2357: Keep session cookies when using exposeAPIRouteRules (#199)
* fix: LDP-2357: Fix the local tasks when using exposeAPIRouteRules * LDP-2357: Add dist * Revert "LDP-2357: Add dist" This reverts commit c546916.
1 parent 99fd218 commit 6b5016b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/server/api/drupalCe.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ export default defineEventHandler(async (event) => {
66
const path = params ? '/' + params : ''
77
const drupalCe = useRuntimeConfig().public.drupalCe
88
const drupalUrl = (drupalCe.serverDrupalBaseUrl || drupalCe.drupalBaseUrl) + drupalCe.ceApiEndpoint
9+
// Remove x-forwarded-proto header as it causes issues with the request.
10+
delete event.req.headers['x-forwarded-proto']
911
return await proxyRequest(event, drupalUrl + path)
1012
})

0 commit comments

Comments
 (0)