can't access window.swaggerUi inside injected JS code #9648
Unanswered
wojciech-zur
asked this question in
Q&A
Replies: 1 comment
-
I was having almost the exact same issue. I could not get Step 1: In your
Step 2: Now, in your injected.js:
Now when I click my custom button then try an API call, everything works as expected:
I hope nobody else ever has to go through this :) |
Beta Was this translation helpful? Give feedback.
0 replies
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 have a backend in .NET 8, where I InjectJavascript like this:
my customSwaggerLogin.js content is:
The code properly fetches JWT token, but it crashes here:
telling me that window.swaggerUi is undefined. I will be glad for any hint with this issue.
Beta Was this translation helpful? Give feedback.
All reactions