How to extend getHeaders in @vue-storefront/magento-api
hi,everyone~
I'm currently using the
@vue-storefront/magento-api
repository, and I've noticed that each API uses the getHeaders method to set headers. However, the getHeaders
method only reads three items: Content-Currency, store, and Authorization
.
I've noticed that each request can be configured with the customHeaders
parameter, but that's not what I'm looking for.
I'm looking for a way to configure or override it ( getHeaders
) to set more parameters. (Global)or set GLOBAL customHeaders?
Where can I configure or override this? Thank you very much for your assistance.
@rohrig & @skirianov thanks~2 Replies
Hey @Acacius, I'm not sure to be honest, let me ask our engineers for an answer
Thank you for looking into this, @skirianov . I appreciate your willingness to check with your engineers. Please take your time, and I'm looking forward to the answer whenever it's available. Your help is much appreciated!😄