Skip to content

Commit

Permalink
Add OPTIONS and HEAD to supported methods (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolyunya authored and lichunqiang committed Nov 9, 2017
1 parent 5aa7326 commit cc9fe94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
window.swaggerUi = new SwaggerUi({
url: url,
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
supportedSubmitMethods: ['options', 'head', 'get', 'post', 'put', 'delete', 'patch'],
onComplete: function(swaggerApi, swaggerUi){
if(typeof initOAuth == "function") {
initOAuth(<?= json_encode($oauthConfig) ?>);
Expand Down

0 comments on commit cc9fe94

Please sign in to comment.