-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
When loading the Swagger UI with an API key configured, the initial call to the resource listing (i.e. swagger.json) does not include the configured API key. Subsequent calls to the resource listing do have the key appended.
To reproduce:
- Uncomment the key pre-population code in the sample index.html file.
- Load the page while viewing the Network tab in your favorite browser development window.
- Observe swagger.json is pulled from http://petstore.swagger.io/v2/swagger.json
- Click the Explore button.
- Observe swagger.json is pulled from http://petstore.swagger.io/v2/swagger.json?api_key=myApiKeyXXXX123456789
- Note the api_key is appended.
This behavior seems inconsistent. Our resource listings require an access key be provided, is there another way we should be approaching this?
Metadata
Metadata
Assignees
Labels
No labels