opencomponents / oc-client-browser

The OpenComponents Browser client
MIT License
6 stars 8 forks source link

add option in conf to add globalheaders to any oc request #85

Closed ricardo-devis-agullo closed 2 years ago

ricardo-devis-agullo commented 2 years ago

This adds a new option in the conf object called globalHeaders that behaves similar to globalParameters, but for headers. This will allow to set a header to send to all your OCs (useful for authentication, for example). globalHeaders can be an object, or a function that returns an object (in case you want it to depend on globals exposed in window that may change).

pbazydlo commented 2 years ago

is it possible to add tests covering this new functionality?

ricardo-devis-agullo commented 2 years ago

added