Closed ypicard closed 2 years ago
same problem.. any solution?
This function is run on the client - so you will not have access to anything from the server. You could try using the using some custom js to define some variables that you could then use https://github.com/scottie1984/swagger-ui-express#custom-js. However you might run into scoping problems depending on how the requestInterceptor function it called.
Hi,
I am trying to pass a custom request interceptor to the swagger configuration. Unfortunately, I cannot manage to pass a custom variable to this function. I get an
undefined
variable error.Is this even possible? Thank you!