-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolver error at ... Could not resolve reference because of: Unauthorized #3220
Comments
Is this what you're looking for? #2793 |
@shockey: Thank you, I had not seen that issue. It sounds like there is a work-around, but I don't see why that should be necessary. When someone authorizes (enters username/pwd) using the browser's built-in http-basic auth system, then the browser will send the There must be something special about the way definitions are retrieved that is causing the browser to omit |
@dylancwood, I'm inclined to say that your PR last week (referenced above this comment) solves this 😄 Am I correct? |
Closing due to inactivity. This is simply to keep our issue tracker clean - feel free to comment if there are any further thoughts or concerns, and we'll be happy to reopen this issue. |
@anjukuriakose, it appears that your $refs are missing a |
Our server uses http-basic authentication to protect our API docs (for some reason that I don't understand). Once a user logs in, the browser will send the appropriate
authorization
header with all requests for JS, CSS, XHR, images, etc... The swagger-ui renders quite well, except that it has a giant red error message on top stating the following:This is due to a 401 response when trying to retrieve
definitions.json
.Looking at the network panel of Chrome dev tools, I see that the core JSON swagger file was fetched via XHR using the HTTP
authorization
headers as expected. However, the request to getdefinitions.json
did not include anyauthorization
headers.(Above: Network request to get core swagger.json file)
(Above: Network request to get definitions.json file)
Thanks in advance for any advice.
The text was updated successfully, but these errors were encountered: