Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Add the follow Code Snippet to index.html from swagger-ui
- // ...
- window.swaggerUi = new SwaggerUi({
- url: url,
- // --- --- --- ----
- useJQuery: true,
- authorizations: {
- makeCredentialed: function() {
- this.xhrFields = {withCredentials: true}; // The important bit, along with useJQuery
- return true;
- }
- },
- // --- --- --- ----
- // ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement