AlokaiA
Alokai3y ago
akie

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~
Was this page helpful?