adobe / aem-headless-client-js

AEM Headless Client for JavaScript
Apache License 2.0
25 stars 12 forks source link

allow custom request headers #38

Closed jihuang-adobe closed 1 year ago

jihuang-adobe commented 2 years ago

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist:

ghenzler commented 1 year ago

@jihuang-adobe What is your use case that requires to set an additional header? Do you have some intermediate infrastructure that requires that header?

(I'm asking because potentially it could be better to explicitly provide the functionality over this generic approach, but it depends on if it is very specific to your setup or not)

jihuang-adobe commented 1 year ago

Hi @ghenzler. I currently have AEM graphql endpoint behind a proxy. The proxy can potentially take a list of custom headers, so I thought it would be convenient if the AEM Headless Client would accept custom headers as an option.