Allow customization of the axios instance #4689
Unanswered
javoscript
asked this question in
Ideas & Feature Requests
Replies: 1 comment 1 reply
-
What kind of customizations are you adding and why? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to add a custom header to all requests being made from Nova, and found out that the
Nova.request()
function, that provides a Nova-customized instance of axios, doesn't allow for any further customization.I ended up wrapping the function with an implementation of my own (leaving it here for anyone facing the same "issue"):
I think it would be really useful if the provided
app
object in thebooting()
callback provided access to an axios instance being used by Nova and allowed for further customization 😊.Beta Was this translation helpful? Give feedback.
All reactions