We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99fd218 commit 6b5016bCopy full SHA for 6b5016b
src/runtime/server/api/drupalCe.ts
@@ -6,5 +6,7 @@ export default defineEventHandler(async (event) => {
6
const path = params ? '/' + params : ''
7
const drupalCe = useRuntimeConfig().public.drupalCe
8
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']
11
return await proxyRequest(event, drupalUrl + path)
12
})
0 commit comments