Skip to content

Commit

Permalink
fix: LDP-2357: Keep session cookies when using exposeAPIRouteRules (#199
Browse files Browse the repository at this point in the history
)

* fix: LDP-2357: Fix the local tasks when using exposeAPIRouteRules

* LDP-2357: Add dist

* Revert "LDP-2357: Add dist"

This reverts commit c546916.
  • Loading branch information
vloss3 authored Feb 28, 2024
1 parent 99fd218 commit 6b5016b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/server/api/drupalCe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ export default defineEventHandler(async (event) => {
const path = params ? '/' + params : ''
const drupalCe = useRuntimeConfig().public.drupalCe
const drupalUrl = (drupalCe.serverDrupalBaseUrl || drupalCe.drupalBaseUrl) + drupalCe.ceApiEndpoint
// Remove x-forwarded-proto header as it causes issues with the request.
delete event.req.headers['x-forwarded-proto']
return await proxyRequest(event, drupalUrl + path)
})

0 comments on commit 6b5016b

Please sign in to comment.