Skip to content
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

Extra addApiKeyAuthorization(); causes error. #1205

Closed
woodcockjosh opened this issue Apr 24, 2015 · 0 comments
Closed

Extra addApiKeyAuthorization(); causes error. #1205

woodcockjosh opened this issue Apr 24, 2015 · 0 comments

Comments

@woodcockjosh
Copy link

In the example given:

// if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
  /*
    var apiKey = "myApiKeyXXXX123456789";
    $('#input_apiKey').val(apiKey);
    addApiKeyAuthorization();
  */

You need to delete addApiKeyAuthorization(); from this in the dist/index.html file. This took me an hour to learn this should only be called in onComplete:....

@webron webron added this to the v2.1 milestone May 4, 2015
ponelat added a commit to ponelat/swagger-ui that referenced this issue May 5, 2015
fehguy added a commit that referenced this issue May 8, 2015
@fehguy fehguy closed this as completed in 37f4850 May 8, 2015
Jonahss pushed a commit to eaze/swagger-ui that referenced this issue Aug 12, 2016
Jonahss pushed a commit to eaze/swagger-ui that referenced this issue Aug 12, 2016
vincent-zurczak pushed a commit to roboconf/swagger-ui that referenced this issue Aug 19, 2016
vincent-zurczak pushed a commit to roboconf/swagger-ui that referenced this issue Aug 19, 2016
JuanSW18 pushed a commit to Digital-Paw/digital-paw-swagger-ui that referenced this issue Aug 23, 2024
JuanSW18 pushed a commit to Digital-Paw/digital-paw-swagger-ui that referenced this issue Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants