feat(swagger-ui-react): Add withCredentials prop (#7980)

Co-authored-by: Tim Lai <timothy.lai@gmail.com>
This commit is contained in:
Simon Podlipsky
2022-05-02 23:25:36 +02:00
committed by GitHub
parent 630178f6a1
commit 31717dbb38
2 changed files with 8 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ export default class SwaggerUI extends React.Component {
showExtensions: this.props.showExtensions,
filter: ["boolean", "string"].includes(typeof this.props.filter) ? this.props.filter : false,
persistAuthorization: this.props.persistAuthorization,
withCredentials: this.props.withCredentials,
})
this.system = ui
@@ -129,6 +130,7 @@ SwaggerUI.propTypes = {
tryItOutEnabled: PropTypes.bool,
displayRequestDuration: PropTypes.bool,
persistAuthorization: PropTypes.bool,
withCredentials: PropTypes.bool,
}
SwaggerUI.defaultProps = {